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.

http://php.net/manual/en/language.operators.comparison.php


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -