_IsValueInArray (Text, Array)

Checks if a specified text value is equal to one of the text values in an array.

Syntax

_IsValueInArray(valueToTest,valueList)

Parameters

Parameter Definition Data type

valueToTest

Text value with which to compare the values in the array.

Text

valueList

Array of text values against which to compare the value specified in the valueToTest parameter.

Array of Text values

Returns

True or False (Boolean), indicating whether the text value to test is in the array of text values.

Notes

The valueToTest value is compared to each element of the array. If the value is equal to at least one element of the array, the method returns True. Otherwise, the method returns False.