Added a reference to ternary operators. (#14309)
`if expressions` are similar to ternary operators in other languages. In order to make this easier to find in the manual, I've added a sentence about it.
This commit is contained in:
parent
b8ec07f19e
commit
55446c05a4
1 changed files with 1 additions and 0 deletions
|
|
@ -3128,6 +3128,7 @@ If expression
|
|||
-------------
|
||||
|
||||
An `if expression` is almost like an if statement, but it is an expression.
|
||||
This feature is similar to `ternary operators` in other languages.
|
||||
Example:
|
||||
|
||||
.. code-block:: nim
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue