Silverstripe Version:
3.1.x
Question:
Those template multiple conditional is not working with my version.
Does anyone have similar issues?
<% if $MyDinner != "kipper" || $MyDinner != "salmon" %>
yummy, fish for tea
<% end_if %>
Silverstripe Version:
3.1.x
Question:
Those template multiple conditional is not working with my version.
Does anyone have similar issues?
<% if $MyDinner != "kipper" || $MyDinner != "salmon" %>
yummy, fish for tea
<% end_if %>
I have similar code that works fine?
<% if $Title == "mytitle" || $Title == "myothertitle" %>
Show this
<% else %>
Show nothing
<% end_if %>
Just make sure you are not pasting in the hex code, that is the only thing that may affect it?
Thanks for this.
Sorry, I was wrong.
I tried to ask negative “!=”
<% if $Title != "MyTitle" %>This is not the title you're looking for.<% end_if %>
This works for me.