|
| |||||||||||||||||
| Navigation |
Synopsis Conditional expression for numeric values.
Syntax
Exp1 ? Exp2 : Exp3
Types
Description If the value of
Exp is true then the value of Exp1 else the value of Exp2.
Examples
rascal>(3 > 2) ? 10 : 20 int: 10 rascal>(3 > 20) ? 10 : 20 int: 20 Questions
Question [1].
Question [2].
Question [3].
Question [4].
Question [5].
|