Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Multiple conditions

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1078 Views
  • thejackel
    Community Member
    33 Posts

    Multiple conditions Link to this post


    Is it possible to use multiple conditions with page controls.

    I have a script what displays two different menus depending on a condition:

    <% if Children %>

    <% if ID != 23 %>
    // Code to display first menu
    <% end_if %>

    <% else %>
    // Code to display second menu
    <% end_if %>

    Basically, I want insert another condition within the Children one - something like this:

    <% if Children OR ID != 23 %>

    Is this possible?


Page: 1
Go to Top

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

Comments on this website? Please give feedback.