I am trying to create multicolumns for a block but it doesn’t seem to be working, I have the following and it is simply adding the closing TR for each count rather then if it is divided by 5 as I have started in my IF statement.
Mod isn’t a valid operator??? Certainly it is in an if statement. Smarty simply takes the condition in its if statement and creates a PHP if statement.
My only minor issue is the if statement puts in a TR after the first listing as that index value is 0. Any ideas how to change this? The rest work after that.
[quote name=‘tbirnseth’]Wow, I find it hard to believe that the smarty parser cares whether there is whitespace between the operator and operands or not.