How to check if a variable is within an array?

Dm114

Well-known member
Iterate every element of the array.

Are you sure you definitely need to use an array? If it only contains words (or values), you could concatenate them in a string variable and use the If... contains action.
 

GiladB

Member
Iterate every element of the array.

Are you sure you definitely need to use an array? If it only contains words (or values), you could concatenate them in a string variable and use the If... contains action.
For some reason it didn't work when I used a variable, maybe because it checks whether the whole variable is within the other one.
What do I do after that?
How do I make it go through all the indexes in the array?
 

Endercraft

Moderator (& bug finder :D)
Use the iterate dictionary/array loop then in the loop you can use the magic texts [iterator_array_index]/[iterator_dictionary_key] and [iterator_value].
 
Top