Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » How to do a <= check in template
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: How to do a <= check in template | 1223 Views |
-
How to do a <= check in template

16 December 2008 at 2:37am
Hello.
I would like to do a test like this:
<% if $Pos <= 4 %>
...Is this possible in the ss template?
-
Re: How to do a <= check in template

16 December 2008 at 3:29am
If <= works (which I'm not sure of) then it would be:
<% if Pos <= 4 %>
i.e. without the $
If not, and $Pos is an integer, can't you do < 5?
| 1223 Views | ||
|
Page:
1
|
Go to Top |


