If I have a vector that contains 5 integers 2,6,9,19,20 , how can I write an if statement to say if the vector 'contains' 3,6,7,10,21 then do x (the vector changes its values in each loop) so I want to write an if statement to say if it matches the exact values I wrote do something.
The "simplest" way I guess would be a long statement to say if myvec[0] == 3 && myvec[1] == 6 .... but is there a cleaner way than that?