isArray
  • 23 May 2023
  • Dark
    Light
  • PDF

isArray

  • Dark
    Light
  • PDF

Article summary

isArray Task Purpose

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.

Properties

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"].

    isArray-01

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

    isArray-02

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.

    isArray-03

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

    isArray-04


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.