In order to support the functionality of an if-elif-else
clause within the body of a workflow, we introduce the method create_conditional_section
. This method creates a new conditional section in a workflow, allowing a user to conditionally execute a task based on the value of a task result.
&
and |
as and / or operators. Additionally, binary expressions are not allowed. Thus if a task returns a boolean and we wish to use it in a condition of a conditional block, we must use built in truth checks: result.is_true()
or result.is_false()