in reply to Re^2: Sleep function
in thread Sleep function

Never mind I got it to work. I used the != in while and it worked perfectly.