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 |
| Select a previously created variable, or input an expression, text, or number. |
| Select a condition between the i.e., "Greater than (>)", "Equals to (=) ", or "Less than (<)". |
| Select a previously created variable, or input an expression, text, or number, to be checked with the |
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.