Just drop the "my" from the second assignment.
In reply to Re: while loop not working by choroba in thread while loop not working by catfish1116