Quote:
Originally Posted by jcorneli
{elseif $smarty.now|date_format:%A <> 'Dec'}
|
There are a few things horribly wrong with this snippet of code. First off, you can't use mathematical comparison operators on strings. You would only use less than or greater than comparisons on integers (numbers).
Second, you don't usually make two comparisons at once. You have less than/greater than, it would need to be is variable less than or is variable greater than.
I don;t see why you need the else if. Just say If = Dec do this else do this. If it is not december the else would fire.