# Plz help on if ...........urgent

**URL:** <https://forum.kirupa.com/t/plz-help-on-if-urgent/174775>\
**Category:** Uncategorized\
**Created:** [January 9, 2006, 9:11am UTC](https://forum.kirupa.com/t/plz-help-on-if-urgent/174775 "2006-01-09T09:11:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavanshinde](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@pavanshinde](https://forum.kirupa.com/u/pavanshinde)\
**Post date:** [January 9, 2006, 9:11am UTC](https://forum.kirupa.com/t/plz-help-on-if-urgent/174775/1 "2006-01-09T09:11:47Z")

</div>

Hi all

i am loading data from a external txt file using loadvars. and putting there values in dynamic textfields. This all is OK.

But the problem is thar i want to chek a if conidition using one of these variables but the condition is not working.

Here is the code i am using

// the actul value of Child4 is 2  
trace(Child4);  
// Here it gives the output 2  
if(this.Child4 == 2)  
{  
trace(“Yes”);  
\_root.child4.\_visible=0;  
\_root.CH4.\_visible=0  
}  
else  
{  
if(CH4.text==“b”)  
{  
trace(5);  
}

}  
}

Here Child4 is the variable giving problem. the if condition not working. Can anybody help this is dam urgent.

Thanks
