Check array doesn't work!

[COLOR=dimgray]if (t1 or t2) = ar[0] or ar[1] or ar[2]
ok = false
else ok is true

… but this doesn’t work, and i dunno how i can fix it![/COLOR]
[COLOR=#696969][/COLOR]

function check() {
 for (i=0; i<ar.length; i++) {
  // - - - - - - - - - - - - - - - 
  if (t1 == ar* or t2 == ar*) {
   ok = false;
  } else {
   ok = true;
  }
  // - - - - - - - - - - - - - - - 
 }
 trace(ok);
}

Please help, if you understand anything of this. :slight_smile: