🧡 Skip to main content🔍 Skip to search

Specify the value that will be compared against another value and the method of comparison.

The If Action conditionally executes one group of Actions or another, depending on whether the condition is true or false. The condition is specified by providing two operands and their relationship. Each operand can be either a fixed value or a variable obtained from a Trigger or other Actions. If the operands are in the specified relation (condition is true), the If Action will execute the group of nested Actions.

A user may choose to add Else Action to introduce a group of Actions that will be run if the operands are not in the specified relation (condition is false). Optionally, a second condition can be added in either a conjunctive or disjunctive way (either both conditions must be met, or any one of them must be met).

CompareDetails
If operand 1 Specify the first of two operands of a condition. Both fixed values and variables are permitted.
Compare Choose the way in which the operands need to relate for the condition to be true. The If Action can test the following relationships between operands · View examples
  • is equal
  • is greater than
  • is greater than or equal to
  • is less than
  • is less than or equal to
  • starts with
  • contains
  • ends with
  • is longer than
  • length is equal to
  • is shorter than
  • is empty
  • matches regular expression
  • contains regular expression
  • contain only these characters
Operand 2 Specify the second of two operands of a condition. Both fixed values and variables are permitted.
Additionally Specify an additional condition:
  • None · Only the primary condition is used.
  • AND · Both conditions must be true.
  • OR · Either condition must be true.
Variable WizardVariable Wizard buttonUse dynamic data input—substitute a parameter from a file, web, connected Trigger, other Actions, date and time presets, etc.
YouTube video · Conditional logic using If…Else flow

Interconnect

  • If integration and auditing—Variables (dynamic data) and Events (recorded activity). Access the left-hand side operand, right-hand side operand, selected comparison, and whether the operands match using the selected comparison method. Additionally, information events, indicating whether the condition holds, are logged.

More comparisons…

Automation Workshop offers specialized Actions tailored to various resources. Each of them features an intuitive interface designed for a specific resource type. Explore more comparison options:

Branching alternatives…

While If–then logic is the most widely used approach to split a Task into two execution paths, there are additional methods to branch an automated workflow · Action flow explained

Notes

  • See details on regular expression usage for more information on regular expression comparison functions, namely, matches regular expression, contains regular expression, does not match regular expression, and does not contain regular expression.
  • The If Action also supports the negation of the above relations with the inverse truth function, namely: is not equal, is not greater than, is not greater than and is not equal to, is not less than, is not less than and is not equal to, does not start with, does not contain, does not end with, is not longer than, length is not equal to, is not shorter than, is not empty, does not match regular expression, does not contain regular expression, and does not contain any of these characters.

How automation works? A 90-second journey.

Still have a question?

If you have any questions, please do not hesitate to contact our support team.