PDA

View Full Version : Error when using curly brackets in if statement


YsTyle
02-20-2010, 03:12 PM
Hello,
I am editing the display of the forums (forumhome_level1_nopost).

I made an variable which is counting how many categories there are:

{catcount} ($catcount++)

and if statement that makes space every 4 cats:

<vb:if condition="{vb:raw catcount}%4==0"><div class="clear"></div></vb:if>

but when i'm trying to save, I get the next error:
"Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3332"
"The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish."

any ideas what is the problem?

Lynne
02-20-2010, 04:56 PM
Try:
<vb:if condition="$catcount%4==0"><div class="clear"></div></vb:if>