F5- nested ifs

Hi,
I have an if like this:
on (release) {
stopDrag ();
if (_root.go_blue._droptarget == “/g_target”)
{then (_root.dancing.gotoAndPlay(2));
}else (_root.dancing.stop())
}
}
This works. I need to add “if (test = “one”)”, another drop sets this variable and the drop above should test for it. But I can’t get the basics right! I’m a programmer who is new to Actionscript. What I want is:
“If the variable is correct AND if it is dropped on the target (g_target) THEN play the movie, ELSE go back to _x=130, _y=300.”
The variable is being assigned correctly, I tested it with a Dynamic text box. The movie isn’t running with my code!
Help!!
Brian

Hi,
I found an article on “attach movie and variables” in the archive and it explained that you have to refer to variables with “.” notation, so “if (_root.go_Green.test == “one”)” made it go.
thanks