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


11 Posts   1668 Views


27 January 2010 at 8:14am Community Member, 787 Posts

wOOt !! ;) Hahah..

You have to be kidding .. Since when ?


7 May 2011 at 5:23am Community Member, 61 Posts

@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?


7 May 2011 at 2:44pm Forum Moderator, 5511 Posts

@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.