Compare the value of two variables

Here is the code I used to compare a variable to an array of values stored in another variable:


Here is a screenshot of the test file:

If the function does not return a positive value on the search, it will instead return -1. The positive value it returns when it does find a match, is the index or position it found the variable in the array.

You can also modify the commands a bit and use the javaScript function for "match".