Skip to main content
All CollectionsUnderstand the CommandsIf
[Command] Else If - multiple conditions
[Command] Else If - multiple conditions
Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

The Else If with multiple conditions command is used for conditional execution. It decides whether certain commands need to be executed or not. It checks for multiple given conditions, then executes the command(s) present under the condition otherwise not. It checks for multiple given conditions, then executes the command(s) present under the condition otherwise not.


Parameters Values

Parameter

Description

Matches: Match all

Execute when the listed conditions are all met.

Matches: Match any

Execute if any of the listed conditions are met.

Condition

Select a condition between the First operand and the Second operand.

i.e., "Greater than (>)", "Equals to (=) ", or "Less than (<)".


Example

The above example of a workflow will start off by using the If command to check if 10 is greater than 20. If this is the case, the workflow will print an information log message the "If" command is correct and then it will end. However, since the result of this command is false, the workflow will move on to the next part: a Else If - multiple condition command. This command will check if 10 is greater than 5 and also if 3 is less than 5. If both of these conditions are met, the workflow will print a log message saying that the "else If" command is correct.

Did this answer your question?