I apologize, it is confusing. I don't know what to do so there is no code yet. My previous attempts are snippets and are not whole. I'm looking if there is a function to do this process below before I start coding again.The values are values of the variables x and y, in this specific case the values are 3 and 5, however, the values of x and y will change every loop.As well as the fact if we convert the numbers into strings it would be pointless again, because it would be searching for x, and not searching for the actual value of x.What I was trying to say here is simply I tried the function arrayValue.containsand in order to do that .contains function, I would need to string x, which would make the .contains function search for x, instead of the actual value of x, in this example is 3.if arrayValue.contains(x){}Sorry if it's not clear, I'll do my best, since I am confused myself.