Configure an If or If-Else Branch


First published on: 02/21/2024/8:39 pm

 

 

“If” and “If-Else” branches define conditional paths that are executed under specified conditions (e.g., if “X” condition exists, do “Y”). 

 

In addition to the basic settings listed here, these two branch types require that one or more conditions be defined, as outlined below. 

 

  • Open the edit branch pane using the pencil icon.
  • Press the Add Condition button (marker 1 below)
  • Configure the values to be compared (markers 2, 3, 4 below).
    • If adding multiple conditions, you may match any (logical “OR”) or match all (logical “AND”) (marker 5 below). 

 

Actual Value (marker 2 below) and Expected Value (marker 4 below) can be any combination of words (marker 4 below), data paths (marker 2 below), or variables.

 

Depending on the condition (marker 3 below), the Expected Value may not be required. For example, “is empty string” will inspect only the first value.  

 

For example: Add one or more conditions (1), then configure details (2, 3, 4). If adding more than one condition, set it to match any or all (5). 

 

 

 

To set the actual and expected values for each condition,

  • Fill in a string value or
  • Press the + button adjacent to each field (marker 1 below).

 

If Add Data Path is selected, a secondary configuration screen will be displayed. This allows the condition data to be fetched from the branch’s assigned Input Message to Use. Otherwise, a variable may be used in the condition (marker 3 below). 

 

For example: Press the + button next to the actual value (marker 1) or expected value (marker 2) and select an option from the dropdown (marker 3). 

 

 

 

Returning to the condition from the comparison dropdown, choose the phrase that best expresses the desired relationship between actual and expected values. 

 

 

 

Repeat this process until all conditions have been added to the branch. 

 

Close the branch description section by pressing the “X” in the top-right corner of the box (marker 1 below).

 

You will be returned to Workflow Designer, where the newly created ‘If-Else’ branch will be visible on your screen. 

 

 

 

Once the branch has been added, it will display a single path if an “If” branch was configured or two paths (yes/no) if an “If-Else” branch was configured. 

 

For example: "If-Else" branch with Yes/No paths (circled in red below). 

 

 

 

Previous

Next


  

Last modified: 03/25/2025/12:53 pm

-