Help files

If Action

Description:

This Action marks the beginning of a conditional block of Actions.

if.png
Properties:

First Operand:

Enter a variable output defined by a previous Action, or a literal value such as a text or a number, to compare with the second Operand.

Operator:

Choose the relationship of the first Operand to the second Operand.

Ignore Case:

If the comparison is between two text values or variables, this option will specify whether any difference in the case between the two operands will be taken into account. This property is available only if the selected operator is any of the following: "Starts with", "Does not start with", "Contains", "Does not contain", "Ends with" or "Does not end with".

Second Operand:

Enter a variable output defined by a previous action, or a literal value such as a text or a number, to compare with the first Operand.

Remarks:

The operators "Is Empty" and "Is not Empty" have a special meaning depending on the data type of the first operand. For example, if the first operand is a variable that holds a text value, "Is Empty" is true if the text value is equal to the empty string. If the operand is a variable that holds a list then "Is Empty" is true if the list contains no items.

If the first operand is a value that holds a file (e.g. could be a variable populated by a "Get Files in Folder" Action) then "Is Empty" is true only if the file is an empty file (its size equals to 0 bytes). Accordingly, if instead of a file is a folder variable "Is Empty" will be true if the folder does not contain any files or subfolders.