HI all. I parse an xml file and then extract the value in one of its tags which is basically text. Then I convert this text stored in a variable called text into string, and then i check for it in an if then else statement. --------------------------------------------------------- text= parserObj.child[1].child[1].child[3].child[1].text Stext=string(text); if (Stext="zip") then blah else blah blah end if --------------------------------------------------------- When I print Stext it is infact "zip" but somehow the check always returns false... Can somebody tell me y???? Also I realised that when i extracted a certain value also from the xml file which is essentially an integer and assigned it as the width of a sprite it didnt work, but when i divided it by 1 it did. ------------------------------------------ Wsize= parserObj.child[1].child[1].child[2].child[1].text sprite(11).width=Wsize/1 ------------------------------------------------------ This I thought was probably because Wsize was understood to be a string and after division by 1 became an integer and hence it worked. But with this string problem there doesnt seem to any solution out. I even converted the extracted data into string but still it doesnt work!!! Can anybody tell me what should i do?? Thanx so much Richie __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]