Loop on array elements

<< Click to Display Table of Contents >>

Navigation:  Actions > Variables >

Loop on array elements

This action allows you to list the elements of an array in a loop. Like the “Count array elements” action, it works with two types of arrays:

Comma-separated string

JSON array

 

LoopOnArray1

 

Source string

The string in which to count the number of elements. Available formats:

Standard comma-separated string

JSON array

 

Process string as...

Specify the processing mode for the source string.

 

Save current element to variable

Enter the variable name in which to store current element value.

 

LoopOnArray2

 

If you have selected the Comma-separated string array type, you need to specify the string format:

Delimiter

Quote char

Strict delimiter

Please note that if you do not use the Strict Delimiter mode, the action will also consider spaces outside quotation marks as delimiters.

The default format is used:

Delimiter = Comma (,)

Quote char = Double quotation mark (")

Strict delimiter = FALSE

 

The loop assigns the value of the element to the variable at each iteration of the loop.

 

note Related Topics

Create Variable

Set Variable

Remove Variable

Increment Variable

Delimited variable

TimeDifference

Date and Time functions

Add working days to date

Count array elements