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:
Avahe Kellenberger
2020-05-12 02:28:10 -04:00
committed by GitHub
parent b8ec07f19e
commit 55446c05a4

View File

@@ -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