The ternary block returns the value of expr1 if condition is true, otherwise, it returns the value of expr2.
expr1
condition
true
expr2
To specify the condition, attach a condition block to the test input.
test
To specify the return value if the condition is true, attach it to the if true input.
if true
To specify the return value if the condition is false, attach it to the if false input.
if false
Last updated 7 years ago
condition ? if_true : if_false;