Skip to the content
Documentation

Re: What is the syntax ???

No ratings yet

There is no one line "if". "?:" is not a control structure like "if". "?:" is an operator, the ternary operator.
The operator in ez you are looking for seems to be "cond".
PHP:
$var = $condition?$valueOn:$valueOff;
Smarty:
{def $var = cond($condition,$valueOn,true(),$valueOff)}