in reply to Re^3: While is not working when using variable
in thread While is not working when using variable

This helped a lot. Using double quote and double slash resolved the issue. Thanks a lot.
  • Comment on Re^4: While is not working when using variable