# Check array doesn't work!

**URL:** <https://forum.kirupa.com/t/check-array-doesnt-work/177710>\
**Category:** flash\
**Created:** [February 4, 2006, 12:12pm UTC](https://forum.kirupa.com/t/check-array-doesnt-work/177710 "2006-02-04T12:12:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pattt](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@Pattt](https://forum.kirupa.com/u/Pattt)\
**Post date:** [February 4, 2006, 12:12pm UTC](https://forum.kirupa.com/t/check-array-doesnt-work/177710/1 "2006-02-04T12:12:54Z")

</div>

[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]

```auto
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. 🙂
