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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

or clause


Go to End


11 Posts   3247 Views

Avatar
Fuzz10

Community Member, 791 Posts

27 January 2010 at 8:14am

wOOt !! ;) Hahah..

You have to be kidding .. Since when ?

Avatar
johnmblack

Community Member, 62 Posts

7 May 2011 at 5:23am

@ajshort -- This does not work for me.

<% if Prop1 || Prop2 || Prop3 || Prop4 %>
...do something
<% end_if %>

throws PHP error, Parse error: syntax error, unexpected T_ELSE

Did the SS implementation change since last year that would make this stop working?

Avatar
Willr

Forum Moderator, 5523 Posts

7 May 2011 at 2:44pm

@johnmblack for 2.4 you can only a single or clause - prop1 || prop2 should would but you can't include any more. This has been changed in 3.0 to support 2 or more.

Go to Top