Thread: smarty question
View Single Post
  #6  
Old 02-10-2008, 02:12 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: smarty question

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?
__________________
Doms
kube v4.1.9
Reply With Quote