I found it useless to do something on array such as if(myArray=[1,2,3]), and the only way I figure out is to compare the elements in each array separately just like this:
for(i=0; i<3; i++)
{
if(myArray[i]==myVar)
{
doThis();
}
}
is there any other way conveniently ?