I am using this in my template and am getting an error when I try to save the template. Can anyone see a problem with this?
Code:
<vb:if condition="$userfield['field23'] & 1">
Unknown
<vb:elseif condition="userfield['field23'] & 2" />
No Food
<vb:elseif condition="userfield['field23'] & 24" />
Breakfast
<vb:elseif condition="userfield['field23'] & 32" />
Lunch
<vb:elseif condition="userfield['field23'] & 63" />
Dinner
<vb:elseif condition="userfield['field23'] & 8" />
Snacks
</vb:if>
Here is the error message:
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.