Contents
Syntax
The syntax for
?{options}(condition; expression_1; expression_2)
@?{options}(condition; expression_1; expression_2)
Description
The
Options
The following options are available for
option | description |
---|---|
evaluate expression with |
|
evaluate expression with |
|
return output | |
do not return output | |
option | description |
f++ example
Examples of
int a = 15, b = 10 int max = ?(a > b; $[a]; $[b]) console(max)
int a = 15, b = 10 `?(a > b; a; b) := 20` console(a)
n++ example
Examples of
@int(a = 15, b = 10) @int(max = ?(a > b; $[a]; $[b])) @console(max)
@int(a = 15, b = 10) @`@?(a > b; a; b) := 20` @console(a) @exprtk(?(a > b; a; b) := 30) @console(a)