# Problem with variable declaration

**URL:** <https://forum.kirupa.com/t/problem-with-variable-declaration/211200>\
**Category:** Uncategorized\
**Created:** [December 28, 2006, 2:16pm UTC](https://forum.kirupa.com/t/problem-with-variable-declaration/211200 "2006-12-28T14:16:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vitamina](https://avatars.discourse-cdn.com/v4/letter/v/bcef8e/32.png) [@Vitamina](https://forum.kirupa.com/u/Vitamina)\
**Post date:** [December 28, 2006, 2:16pm UTC](https://forum.kirupa.com/t/problem-with-variable-declaration/211200/1 "2006-12-28T14:16:37Z")

</div>

Dear All,

I have a simple variable from a PHP script. The output of this script can be “0” or “1”.  
All I want is to make a simple condition in flash:

**var** myVar = ???;  
**if** (myVar = “0”) {  
gotoAndPlay(2);  
}  
**if** (myVar = “1”) {  
gotoAndPlay(3);  
}

Can you give me a simple example PLEASE.
