Condition
The Condition block allows you to run different sets of API blocks depending on whether or not a condition is true (like if
, else if
, and else
statements in code). Add blocks under the if or else conditions to run when the condition is true or false, respectively. Optionally, you can add else if conditions and toggle off the else condition in the Condition block edit pane.
Condition output
Access the output of the Condition block by referencing its output property (e.g.Condition1.output
).
The output of the Condition block is the output of the last block that ran. For example, if the else condition is met, then the output of the Condition block will be the output of last block in the else section.
In this example, the value of Condition1.output
is equal to the output of the Python step, Step3
, because the condition 1 > 100
is not true.