mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 16:38:33 +00:00
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:
committed by
GitHub
parent
b8ec07f19e
commit
55446c05a4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user