Initialize a string that contains % in wse script

This issue has been solved. See solution.
Uma's picture

Hi,
I am trying to write a wse script in which I want to initialize a string called SPECIAL_CHAR to %. Since % is used to reference a string, I am unable to do this. Is there anyway I can use % in a string in wse?
Thanks!
Uma Harano

Chizl's picture

Have you tried %%, just a

Solution

Have you tried %%, just a guess

EdT's picture

That's a good guess

Yes, if you want to include a string with a special character such as %, double it up to %%

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Uma's picture

Thanks EdT, Chizl. It works

Thanks EdT, Chizl. It works BEAUTIFULLY.