Count array elements

<< Click to Display Table of Contents >>

Navigation:  Actions > Variables >

Count array elements

This action is designed to count elements in comma-separated string or JSON array. This is convenient for looping over elements if the number of elements is not known in advance.

 

CountingArrayElements

 

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 number of elements to variable

Enter the variable name in which to store the number of elements.

 

CountingArrayElements2

 

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

 

note Related Topics

Create Variable

Set Variable        

Remove Variable

Increment Variable

Delimited variable

TimeDifference

Date and Time functions

Add working days to date

Loop on array elements