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.

General Questions /

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

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

or clause


Reply


11 Posts   1694 Views

Avatar
Fuzz10

Community Member, 787 Posts

27 January 2010 at 8:14am

wOOt !! ;) Hahah..

You have to be kidding .. Since when ?

Avatar
johnmblack

Community Member, 61 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, 5513 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.