# Automise question

**URL:** <https://www.finalbuilder.com/forums/t/automise-question/4422>\
**Category:** Discussion\
**Created:** [March 16, 2010, 2:13am UTC](https://www.finalbuilder.com/forums/t/automise-question/4422 "2010-03-16T02:13:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [March 16, 2010, 2:13am UTC](https://www.finalbuilder.com/forums/t/automise-question/4422/1 "2010-03-16T02:13:13Z")

</div>

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

&nbsp;

if "sampleString" in %foldervariable%

...

&nbsp;

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

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

---

<div class="post-metadata">

**Author:** ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)\
**Post date:** [March 17, 2010, 3:09am UTC](https://www.finalbuilder.com/forums/t/automise-question/4422/2 "2010-03-17T03:09:55Z")

</div>

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