Problem with variable declaration

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.