# Somethings not working

**URL:** https://forum.kirupa.com/t/somethings-not-working/69788
**Category:** Uncategorized
**Created:** [November 8, 2004, 5:22am UTC](https://forum.kirupa.com/t/somethings-not-working/69788 "2004-11-08T05:22:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Veryfine007](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@Veryfine007](https://forum.kirupa.com/u/Veryfine007)
#### Post date: [November 8, 2004, 5:22am UTC](https://forum.kirupa.com/t/somethings-not-working/69788/1 "2004-11-08T05:22:49Z")

</div>

Help?  
within a for loop my code is:  
\_root[“MCBoxes”+_][“Boxes”+_].onRelease = function(){  
if(\_root.boxesGuessed =0){  
this.cover.\_visible = false;  
}  
else if(\_root.boxesGuessed =1){  
this.cover.\_visible = false;  
}  
else if(\_root.boxesGuessed \>=2){  
this.cover.\_visible = true  
}  
\_root.boxesGuessed +=1  
}

For some reason boxesGuessed is getting stuck at two and twos code doesn’t make cover visible. --making them invisible works fine. I got no clue…
