Skip to main content

Array Contains

Category: Processing

Description: Checks whether a given value exists in an array and outputs both a boolean result and the zero-based index of its first occurrence (-1 if not found).

Text Array​

Inputs​

NameTypeRequiredDescription
Arraytext-arraytrueThe array to search within
ValuetexttrueThe text value to search for

Outputs​

NameTypeDescription
Contains?booleanWhether the array contains the value
IndexnumberThe zero-based index of the value, or -1 if not found

Output Event Triggers​

Name
Success
Error

Examples​

Check if keyword is in list​

Inputs

  • Array:

    [
    "apple",
    "banana",
    "cherry"
    ]
  • Value:

    "banana"

Outputs

  • Contains?:

    true
  • Index:

    1

Number Array​

Inputs​

NameTypeRequiredDescription
Arraynumber-arraytrueThe array to search within
ValuenumbertrueThe number value to search for

Outputs​

NameTypeDescription
Contains?booleanWhether the array contains the value
IndexnumberThe zero-based index of the value, or -1 if not found

Output Event Triggers​

Name
Success
Error