Conditional Branch

Operation Name

Conditional Branch

Function Overview

Perform conditional branch.

Conditional Branch Configuration

Icon Name Description
Start Conditional Branch The start of Conditional Branch.
Condition Set a condition.
You can create multiple [Condition]s in one Conditional Branch operation.
End Conditional Branch The end of Conditional Branch.

Properties

For details on use of variables, refer to “Variables”.
Basic settings
Item name Required/Optional Use of variables Description Remarks
Name Required Not available Enter the name to show on the script canvas.  
Required settings
Item name Required/Optional Use of variables Description Remarks
Condition list Optional - Specify conditions of Conditional Branch.

Each column can be operated with the following buttons.
  • [Add]:
    Add a condition.
  • [Up]:
    Move the selected condition upwards by one.
  • [Down]:
    Move the selected condition downwards by one.
  • [Delete]:
    Delete the condition.
  • The maximum number of [Condition list/Condition] is 253.
  • For priority of conditions, refer to here.
Condition list/Condition Optional Not available Specify conditions.

A specified variable can be compared with a fixed value or another variable.
  • Condition type
    • [Comparison between variable and fixed value]: (default)
      Select to compare a variable with a fixed value.
    • [Comparison between variable and variable]:
      Select to compare a variable with another variable.
  • Condition details
    The condition options differ depending on the selected variable type as follows.
    • Integer/Decimal type variables
      • [equal to]:
      • [not equal to]:
      • [less than]:
      • [greater than]:
      • [not more than]:
      • [not less than]:
    • String type variables
      • [equal to]:
      • [not equal to]:
      • [start with]:
      • [not start with]:
      • [end with]:
      • [not end with]:
      • [contain]:
      • [not contain]:
    • Boolean type variables
      • [equal to]:
      • [not equal to]:
  • Variable types that can be specified in Conditional Branch are as follows.
    • Integer
    • Decimal
    • String
    • Boolean
  • Depending on the variable type specified in the left-hand side of the condition, the condition detail and the variable type in the right-hand side will change.
Condition expression Optional Not available Conditional expressions specified in [Condition] are displayed as string.  
Property actions
Item name Description Remarks
[and]/[or] Select [and] or [or].  
Edit parentheses Specify the priority of conditions using parentheses.
  • Make sure to set the parentheses in pair.
Comment
Item name Required/Optional Use of variables Description Remarks
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Right-click Menu

Icon Item name Description Remarks
Fold/Expand Show/hide icons between [Start Conditional Branch] and [End Conditional Branch].
When folded, only [Start Conditional Branch] is displayed.
Add condition Add [Condition].
  • The maximum number of [Condition] icons that can be added is 98.
Move up evaluation order Move the order of the selected [Condition] upwards by one.
Move down evaluation order Move the order of the selected [Condition] downwards by one.
Duplicate Duplicate the selected [Condition].

PSP Usage

PSP is not supported.

Priority of Conditions

Priority of conditions is as follows.

How to Operate Conditional Branch

Create Conditional Branch

Draw a process flow from [Condition] to the operation that is executed when the condition matches.

Add Conditional Branch

Select [Add condition] from the right-click menu of [Start Conditional Branch] and add a condition.
The maximum number of [Condition] icons that can be added is 98.

Change evaluation order of conditions

Select [Move up evaluation order] or [Move down evaluation order] from the right-click menu of [Condition], and change the evaluation order of multiple conditions. The number encircled on [Condition] is the evaluation order.

When Condition Does Not Match

When the condition set in [Condition] does not match, the subsequent operations to which the flow is drawn from [Start Conditional Branch] will be executed.
If subsequent operation does not exist, the process moves to [End Conditional Branch].



In the above example, if the condition does not match, the Output Log operation will be executed without executing the Wait operation.

Specification Limits

Major Exceptions

None.

Notes

Sample

Using Conditional Branch operation, create a script to execute Launch External Application operation only when the number of seconds for the script execution time is even number.
  1. Create a script as follows.


  2. Create a script variable “var” of integer type.

  3. Perform mapping in the Mapper as follows.

  4. Configure the Conditional Branch as follows.

  5. Execute the script and check the result in the debug information view and the execution log view.

    Debug information & Execution history The number of seconds for the script execution time Whether or not the batch is launched
    Even YES
    Odd NO