Compare a variable with an array list

Thanks but is it possible to browse all the values of an array exmple in a condition if it finds a value that corresponds to a variable the action is
 
In the example you have given I have the impression that we are comparing one value of the table whereas I want to compare all the values of my table, e.g. if my table contains 3 values



Instead of specifying







My variable :







Invariant = 20







My array







array [1]= 10



array [2]= 20



array [3]= 30







I want to search for the value corresponding to 20 in the array without specifying its rank
 
In the example you have given I have the impression that we are comparing one value of the table whereas I want to compare all the values of my table, e.g. if my table contains 3 values


Instead of specifying

My variable :

Invariant = 20

My array
array [1]= 10
array [2]= 20
array [3]= 30

I want to search for the value corresponding to 20 in the array without specifying its rank
In the example I gave the magic is in the for statement... for each value in array, do the action...

So that means, it will process every value and do your function.

So it will process array 1 then array 2 then array 3.

let us know if between this and Ted's post you have all you need or if its still unclear.

you can upload your macro here for us to have a look if you still need more help
 
I found a way to automatically insert the numbers in a table but I don't want the number to be recognizable so I wanted to compare the values in the table before inserting but even with your method it doesn't work for me
 
Top