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, Ed, biapar, Willr, Ingo, swaiba

or clause

Go to End

11 Posts   2421 Views


Community Member, 791 Posts

27 January 2010 at 8:14am

wOOt !! ;) Hahah..

You have to be kidding .. Since when ?


Community Member, 62 Posts

7 May 2011 at 5:23am

@ajshort -- This does not work for me.

<% if Prop1 || Prop2 || Prop3 || Prop4 %> 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?


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