Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt
hiddentrue

listContains(listToTest, valueToLookFor) Returns the position of a value in a list.


Function: listContains()

Returns the position of a value in a list (with 1 being the first item) if the value being looked for is found in the list, and false (0) otherwise.

...

listContains(listToTest, valueToLookFor)

ArgumentTypeDescription
listToTestArrayList of items in which the value will be looked for
valueToLookforAnyThe value being looked for in the list

Examples

listContains(in.valueList,"red")

listContains() returns 3 if in.valueList = ["pink", "blue", "red", "yellow"] or 0 if in.valueList = ["pink", "blue", "black", "yellow"].

See Also