# Variable problem

**URL:** <https://forum.kirupa.com/t/variable-problem/181834>\
**Category:** Uncategorized\
**Created:** [March 13, 2006, 4:29pm UTC](https://forum.kirupa.com/t/variable-problem/181834 "2006-03-13T16:29:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![3deeish](https://avatars.discourse-cdn.com/v4/letter/3/71c47a/32.png) [@3deeish](https://forum.kirupa.com/u/3deeish)\
**Post date:** [March 13, 2006, 4:29pm UTC](https://forum.kirupa.com/t/variable-problem/181834/1 "2006-03-13T16:29:12Z")

</div>

im kind of new to flash actionscripts and im having lots of trouble with this script

on (release) {  
if (v = 0)  
nav2.gotoAndPlay(“up”);  
gotoAndPlay(“contact”);  
trace (v);}

all i want it to do is check of a menu is open and if it is close it (“up”) then carry on to its final destination. the menu sets v to 0 when it is actived, but this button on the main time line wont do as i ask it even though the value is 0?? any ideas anyone?
