Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (10 sloc) 494 Bytes

Ternary Block

Ternary Block

The ternary block returns the value of expr1 if condition is true, otherwise, it returns the value of expr2.

To specify the condition, attach a condition block to the test input.

To specify the return value if the condition is true, attach it to the if true input.

To specify the return value if the condition is false, attach it to the if false input.

Generated Code

condition ? if_true : if_false;
You can’t perform that action at this time.