ifset and if conditions together

materix
Member | 66
+
0
-
{ifset $cond1}
{if !$cond2}
...
{/if}
{/ifset}

Can these two conditions (ifset and if) be merged into one line?

Pepino
Member | 249
+
0
-

{if isset($cond1) && !$cond2}

Marek Bartoš
Nette Blogger | 1172
+
0
-

{ifset} is a bit magic construct. It can be either {if isset($arr['i'])} or {if $this->hasBlock('blockName')}. Drpends whether you want to check variable or Latte block