Login | Forgot password | Register

X

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.

Jump to:

17478 Posts in 4473 Topics by 1972 members

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
  • Sec
    avatar
    Community Member
    13 posts

    How to do a <= check in template Link to this post

    Hello.

    I would like to do a test like this:

    <% if $Pos <= 4 %>
    ...

    Is this possible in the ss template?

  • jam13
    avatar
    101 posts

    Re: How to do a <= check in template Link to this post

    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

Currently Online: cardinale

Welcome to our latest member: g6

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.