# Array problems

**URL:** <https://forum.kirupa.com/t/array-problems/180472>\
**Category:** Uncategorized\
**Created:** [February 28, 2006, 10:13pm UTC](https://forum.kirupa.com/t/array-problems/180472 "2006-02-28T22:13:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingofnukes](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kingofnukes](https://forum.kirupa.com/u/kingofnukes)\
**Post date:** [February 28, 2006, 10:13pm UTC](https://forum.kirupa.com/t/array-problems/180472/1 "2006-02-28T22:13:20Z")

</div>

Hi, I got an arry for a game i’m aking and i was wondering how I could trace it’s true false boolieans to be used in “if” statements?

I have this…

if (!weapons[“Fists”, true][1]) {  
Weapon1.Square.filters = [gfG];  
}

seems to work…but the other weapons dont seem to work

if (!weapons[“Pistol”, true][3]) {  
Weapon2.Square.filters = [gfG];  
}
