Skip to content

Commit 4ff9fae

Browse files
committed
Added another operator
1 parent 6631f70 commit 4ff9fae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/expression_language/introduction.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,11 @@ Numeric Operators
131131

132132
* ``..`` (range)
133133

134+
Ternary Operators
135+
.................
136+
137+
* ``foo ? 'yes' : 'no'``
138+
* ``foo ?: 'no'`` (equal to ``foo ? foo : 'no'``)
139+
* ``foo ? 'yes'`` (equal to ``foo ? 'yes' : ''``)
140+
134141
.. _Packagist: https://packagist.org/packages/symfony/expression-language

0 commit comments

Comments
 (0)