Conditional Loop

Operation name

Conditional Loop

Function overview

Repeats processing while the specified conditions are satisfied.

Conditional Loop configuration

Icon

Name

Description

Start Conditional Loop

The start of Conditional Loop.

End Conditional Loop

The end of Conditional Loop.

Properties

= Remarks =

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 a name that is used on the script canvas.

 

Required settings

Item name

Required/Optional

Use of variables

Description

Remarks

Condition list

Optional

-

Specify conditions to continue loop operation.

Each column can be operated with the following buttons:

Up

Moves the selected column upward by one row.

Down

Moves the selected column downward by one row.

Add

Adds a column.

Delete

Deletes the column.

  • The maximum number of Condition list/Condition is 253.

  • For priority of conditions, refer 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 this to compare a variable with a fixed value.

    Comparison between variable and variable

    Select this to compare a variable with another variable.

  • Condition details

    The condition options that can be set 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 the loop operation are as follows:

    • Integer type

    • Decimal type

    • String type

    • Boolean type

  • Depending on the type of the variable specified in the left-hand side of the condition, only values that can be used for comparison are displayed for the condition details and on the right-hand side.

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.

 

Log settings

Item name

Required/Optional

Use of variables

Description

Remarks

Change log settings

Optional

Not available

Select whether or not to temporarily change the log settings of the loop operation.

Selected

Change the log settings.

Not selected

(Default)

Don't change the log settings.

 

Output log

Optional

Not available

Select whether or not to output logs.

Selected

(Default)

Output logs.

Not selected

Don't output logs.

  • Enabled when Change log settings is selected.

Log level

Optional

Not available

Select a log level to be set.

NOTICE
INFO

(Default)

FINFO
FINEST
DEBUG

  • Enabled when Output log is selected.

Comment

Item name

Required/Optional

Use of variables

Description

Remarks

Comment

Optional

Not available

You can write a short description of this connector.

 

Icon-click menu

Icon

Item name

Description

Remarks

Fold/Expand

Select + or - displayed on the icon.

Show/hide icons between Start Conditional Loop and End Conditional Loop.

When folded, only Start Conditional Loop is displayed.

Parallel Stream Processing

PSP isn't supported.

Available component variables

Component variable name

Description

Remarks

count

The number of loops is stored.

  • The default value is null.

Priority of conditions

Priority of conditions is as follows:

  • Evaluate from the top of Condition list.

  • Evaluate contents inside parentheses prior to contents outside.

  • Evaluate "and" prior to "or".

How to operate Conditional Loop

Creation of Conditional Loop

Place operations that you want to repeat between Start Conditional Loop and End Conditional Loop.

Specification limits

  • If you change the log settings, the log level may change during multi-thread processing, such as PSP or the Thread operation.

  • Even if the condition is added or edited, the update icon (*) isn't displayed on the component icon.

Exception messages

None.

Operation example

Using the Conditional Loop operation, create a script to execute the Call Script operation three times.

  1. Create a script as follows.

  2. The property settings for the Conditional Loop operation are as follows:

    = Remarks =

    The component variable "count" of the Conditional Loop operation is used.

  3. Check the result in the execution log view after executing the script.