# Simple IF statement help please

**URL:** <https://forum.kirupa.com/t/simple-if-statement-help-please/329558>\
**Category:** Uncategorized\
**Created:** [September 14, 2012, 11:16am UTC](https://forum.kirupa.com/t/simple-if-statement-help-please/329558 "2012-09-14T11:16:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peccy](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@peccy](https://forum.kirupa.com/u/peccy)\
**Post date:** [September 14, 2012, 11:16am UTC](https://forum.kirupa.com/t/simple-if-statement-help-please/329558/1 "2012-09-14T11:16:14Z")

</div>

I have a variable (score) initially set to 0, which increments depending on some onrelease events which counts up fine, when it reaches 4 i want to display a movieclip (defaulted to visible = false).

```auto

on (release) {
 
 if (score == 4) {
  packedbox._visible = true
 } 
 
 else if (score != 4){
          packedbox._visible = false
    }
}

```

The score variable reaches 4 and beyond but the movieclip packedbox still does not display true when it reaches 4. please help?
