Quote:
Originally Posted by Ashley
so are the normal PHP operand ok to use in smarty? is == ok or <=?
|
Pertaining to the == condition. I'm not sure if the rule still applies with Smarty but I recall if you wrote it (like me with PHP) with no spaces then Smarty failed the statement.
ie...
(with spaces works)
{if $name == 'Fred' || $name == 'Wilma'}
(without spaces doesn't)
{if $name=='Fred' || $name=='Wilma'}
I thought I got that from carpeperdiem's source at smarty.net - but it doesn't seem to be there any more?? Has it changed then?