Task References

On this page:



The isArray task is used to check if an input is an array. The task returns a boolean ("true" or "false") result that indicates if the input was validated as an array or not.

Potential Use Case

Use the isArray task if you need to validate if a dataset was setup as an array. The task is generally used in the workflow after a task that does not have a constant outgoing variable type, such as an external API request that could return an array or a string.


Input and output parameters are shown below.

Incoming Type Description
arr Array Required. The input to check.

Outgoing Type Description
isAnArray Boolean Returns true if the input is an array, and false if not.


Example 1

In this IAP example:

  • The arr variable is statically set and the Reference variable is ["1","2","3"].


  • The outgoing result is true, indicating the input is an array.


Example 2

In this IAP example:

  • The arr has a Reference variable of "1","2","3". Notice the square brackets "[]" are missing at the beginning and end of the variable.


  • The task returns false, indicating the input value is not an array.