if I have an array like this:
thisarray = new Array("this", "that", "theotherthing");
how could I go about building a conditional like so:
if(thisarray[0] == thisvar && thisarray[1] == thisvar && thisarray[2] == thisvar) {
//do something
}
the caveat is that I do not know how many items could be in thisarray. I'm a bit stumped as to how to accomplish this. Any help would be appreciated.
thisvar1,thisvar2, etc... coming from? Do you just want to check if two arrays are equal?