Conditional

 

Introduction

A conditional task is used to provide conditions into the automation such that if the first condition is true then the other conditions will not be executed.

 

Description

You can use the following types of expressions to work in automation:

  1. == =!: These operators are used to denote equality
    For example,
    .Width==0 (where width is 0)
    OR
    .width=!0 (where width is not 0)

  2. ><: This operator is used for the comparison purpose in the automation
    For example,
    A>B (Prints that A is greater than B)
    A<B (Prints that A is smaller than B)

All the basic expressions(applied on a string, number, boolean) supported by a java you can be written into the conditional equation.


Steps to configure

  1. Drag and drop the conditional task from the helper section and connect it with other tasks.

  2. Once you connect the conditional task, an input field will appear in the connection itself named condition. Each connection will have such an input field. You can add multiple conditions. Conditions are an optional part of an automation rule and can be used to prevent an action from happening when triggered.

  3. Click on condition and the below form will appear on the right side of the screen. A conditional expression has the general form. where expr1 is an expression that yields a true or false result. If the result is true, the value of the conditional expression is set to expr2. If the result is false, the value of the conditional expression is set to expr3.

  4. To add a condition, you first need to feed desired data from the data slot followed by the condition.

  5. Click on save to successfully save the condition.