Automise question

Hi all,

maybe its a simple question, but i couldn't find the answer. Here it is:

I have a if else statement and i am checking folder names from a variable like

 

if "sampleString" in %foldervariable%

...

 

but if the folder name has "%" sign in it (for ex: "c:/docs/100%"), it is giving me an error saying that the "% missing at the end of variable"

What would be a solution for that? thanks for the help. 

Hi,

You’ll need to reference the foldervariable with the %!foldervariable% syntax, this will prevent the variable from being recursively expanded.

Regards,
Paul.