Merge pull request #10767 from sivel/issue/10763
Correct the ternary example. Fixes #10763
This commit is contained in:
commit
5d446bbd5b
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