mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2069 from stevie-mayhew/patch-1
MINOR: equality check consistency
This commit is contained in:
commit
c45ae00d01
@ -146,7 +146,7 @@ quotes, `kipper`, which is a **literal**. If true, the text inside the if-block
|
||||
is output.
|
||||
|
||||
:::ss
|
||||
<% if $MyDinner="kipper" %>
|
||||
<% if $MyDinner=="kipper" %>
|
||||
Yummy, kipper for tea.
|
||||
<% end_if %>
|
||||
|
||||
@ -159,7 +159,7 @@ This example shows the use of the `else` option. The markup after `else` is
|
||||
output if the tested condition is *not* true.
|
||||
|
||||
:::ss
|
||||
<% if $MyDinner="kipper" %>
|
||||
<% if $MyDinner=="kipper" %>
|
||||
Yummy, kipper for tea
|
||||
<% else %>
|
||||
I wish I could have kipper :-(
|
||||
@ -171,9 +171,9 @@ and the markup for that condition is used. If none of the conditions are true,
|
||||
the markup in the `else` clause is used, if that clause is present.
|
||||
|
||||
:::ss
|
||||
<% if $MyDinner="quiche" %>
|
||||
<% if $MyDinner=="quiche" %>
|
||||
Real men don't eat quiche
|
||||
<% else_if $MyDinner=$YourDinner %>
|
||||
<% else_if $MyDinner==$YourDinner %>
|
||||
We both have good taste
|
||||
<% else %>
|
||||
Can I have some of your chips?
|
||||
|
Loading…
Reference in New Issue
Block a user