Legal IF syntax
| From: | Gerard Samuel | Date: | Sun, 14 Sep 2003 17:56:31 +0000 |
| Subject: | Legal IF syntax | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10201@lists.php.net to get a copy of this message | ||
Smarty variables that can be either true or false.
Could it be written as such ->
{if $foo OR !$bar}
do something
{/if}
Where $foo is tested for TRUE and $bar for FALSE
I know the $foo is legal, but not sure about !$bar
It seems to work in my templates, but just looking for verification that its proper syntax...
Thanks