![]() |
smarty question
Ok so I can't find the info on smarty opernads.
Does xcart use its own set? what is gt ne eq? eq I guess means == ne means not equal? gt greater than? pleae shed some light on this for me. :) |
Re: smarty question
Quote:
you are correct! |
Re: smarty question
|
Re: smarty question
so are the normal PHP operand ok to use in smarty? is == ok or <=?
|
Re: smarty question
Quote:
The way I read it: use the 1st column. 2nd column is optional/alternate method. |
Re: smarty question
Quote:
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? |
Re: smarty question
Moving to Template Editing
|
All times are GMT -8. The time now is 03:29 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.