Choose between two different values based on a condition
true
value will be passed through the output port. Otherwise, the false
value will be passed through the output port. An unconnected port is considered false. A Not Ran
value is considered false. Required.true
or false
value, depending on the if
condition.true
.Hello
and World
.If
, Hello
to True
, and World
to False
.Hello
.false
and run again. The output should now be World
.What is considered truthy in Odella?
true
false
"false"
Not Ran
valuesWhat happens if the `If` input is `Not Ran`?
If
input is Not Ran
, the False
value will be passed through instead. If the False
value is not connected and “Don’t run unconnected ports” is enabled, then the result will be control-flow-excluded.Can I use the If/Else Block to choose between two different types of values?