# Need help bad script bug

**URL:** <https://forum.kirupa.com/t/need-help-bad-script-bug/221968>\
**Category:** Uncategorized\
**Created:** [April 9, 2007, 7:12pm UTC](https://forum.kirupa.com/t/need-help-bad-script-bug/221968 "2007-04-09T19:12:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lane411](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lane411/32/3397_2.png) [@lane411](https://forum.kirupa.com/u/lane411)\
**Post date:** [April 9, 2007, 7:12pm UTC](https://forum.kirupa.com/t/need-help-bad-script-bug/221968/1 "2007-04-09T19:12:22Z")

</div>

I have a weather widget plays fine out side an mc, but place it inside a mc  
an the conditions ie “clouds” don’t work here is the code for it.

\_level0.condtext = “not\_loaded”;  
loadVariablesNum(“weather.php”, 0); ///this loads the php file…

///this loads cond “file”

if(\_level0.condtext == “not\_loaded”)  
{  
gotoAndPlay(2);  
}  
else  
{  
\_root.cond.\_visible = true;  
\_root.cond.gotoAndStop(\_level0.pic);  
\_root.loc = \_level0.city + ", " + \_level0.state + ", " + \_level0.country;  
\_root.temp = \_level0.temp + “°F”;  
\_root.cond\_title = \_level0.condtext;  
play();  
}
