php - Can <% if %> Use Integers? -
i'd use silverstripe 3 template conditional based on integer return this:
<% if $variable.count = 1 %>
is possible? doesn't seem work when try , documentation talks literals inside "" ==.
yes, when done properly, no when you're doing way. 1 = means you're assigning 1 variable, true. 2 ='s (==) comparison operator. 3 (===) type comparison operator.
Comments
Post a Comment