# Simple code, big problem

**URL:** <https://forum.kirupa.com/t/simple-code-big-problem/321694>\
**Category:** Uncategorized\
**Created:** [April 27, 2011, 6:28pm UTC](https://forum.kirupa.com/t/simple-code-big-problem/321694 "2011-04-27T18:28:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alyssahhhh](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@alyssahhhh](https://forum.kirupa.com/u/alyssahhhh)\
**Post date:** [April 27, 2011, 6:28pm UTC](https://forum.kirupa.com/t/simple-code-big-problem/321694/1 "2011-04-27T18:28:50Z")

</div>

I’m using a simple conditional statement to hide and then display a set of movieclips once a counter (Number) has reached a certain value. The counter works, I traced the value, but the conditional statement does not. Here it is:

```auto
var counter:Number=0;

drape1_mc.visible=false;
drape2_mc.visible=false;
drape3_mc.visible=false;
drape4_mc.visible=false;
drape5_mc.visible=false;

if (counter>=43) {
	trace("GO MARY!");
drape1_mc.visible=true;
drape2_mc.visible=true;
drape3_mc.visible=true;
drape4_mc.visible=true;
drape5_mc.visible=true;
}

```

I’ve tried all sorts of things: changing the \>= to ==, testing different values (the only one that triggers a trace statement is 0, but obviously that’s not going to work), but nothing works! I could paste my whole code but its over 1000 lines long because it’s so simple. I’m not getting any error messages, its just not working.
