Skip to main content
[Command] If
Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

The if command is used for conditional execution. It decides whether certain commands need to be executed or not. It checks for a given condition, if the condition is true, then the command(s) present under the condition will be executed otherwise not. It is used when you want to conditionally execute different commands, depending on a specified condition.


Parameters Values

Parameter

Description

First operand

Select a previously created variable, or input an expression, text, or number.

Condition

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

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

Second operand

Select a previously created variable, or input an expression, text, or number, to be checked with the First operand.


Example

In this workflow, the if command evaluates the given condition (if the first operand is greater than the second operand). If the condition is true, then the Print to log command within the condition will be executed, otherwise not.

Did this answer your question?