Correct the ternary example. Fixes #10763
This commit is contained in:
parent
f4172fb9da
commit
d34e7d7bca
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ Other Useful Filters
|
|||
|
||||
To use one value on true and another on false (since 1.9)::
|
||||
|
||||
{{ name == "John" | ternary('Mr','Ms') }}
|
||||
{{ (name == "John") | ternary('Mr','Ms') }}
|
||||
|
||||
To concatenate a list into a string::
|
||||
|
||||
|
|
Loading…
Reference in a new issue