I have attached the image for more clarification. what i want to do is to get a reply true if the next number i.e a2 is either equal to a1 or is from a certain set of values that is different for different numbers. For e.g if A1 is 34 then A2 should be either 2,25,17,6,27,13. Like this, there are different sets of values for different numbers. Thanks for your help!
Screenshot (71).png
Bookmarks