[cond-expr] add one doc about conditional expression

This commit is contained in:
Lu Guanqun
2016-01-22 17:14:01 +00:00
parent bf7daf0814
commit 41039705ac
+1 -1
View File
@@ -9,7 +9,7 @@ Control Structures
Most of the control structures from C/JavaScript are available in Solidity
except for `switch` and `goto`. So
there is: `if`, `else`, `while`, `for`, `break`, `continue`, `return`, with
there is: `if`, `else`, `while`, `for`, `break`, `continue`, `return`, `? :`, with
the usual semantics known from C / JavaScript.
Parentheses can *not* be omitted for conditionals, but curly brances can be omitted