# Simple "if" problem

**URL:** <https://forum.kirupa.com/t/simple-if-problem/104662>\
**Category:** Uncategorized\
**Created:** [March 18, 2004, 10:58am UTC](https://forum.kirupa.com/t/simple-if-problem/104662 "2004-03-18T10:58:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [March 18, 2004, 10:58am UTC](https://forum.kirupa.com/t/simple-if-problem/104662/1 "2004-03-18T10:58:03Z")

</div>

I have this code [AS]if (this.\_currentframe==2) {  
this.bt1.gotoAndStop(11);  
}  
[/AS]

it will check if an element of my menu is at frame 2 and if so tell this element to go frame 11 but it won’t work, i’ve tried many things for the path but didn’t find out what’s the problem with my code.

Ubik
