Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Multiple conditions


Go to End


1432 Views

Avatar
thejackel

Community Member, 33 Posts

30 May 2008 at 1:01am

Edited: 30/05/2008 1:02am

Hi,

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?

Thanks