# Adding variables

**URL:** https://www.finalbuilder.com/forums/t/adding-variables/1011
**Category:** Discussion
**Created:** [October 21, 2008, 9:42am UTC](https://www.finalbuilder.com/forums/t/adding-variables/1011 "2008-10-21T09:42:59Z")
**Posts on this page:** 3
**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: [October 21, 2008, 9:42am UTC](https://www.finalbuilder.com/forums/t/adding-variables/1011/1 "2008-10-21T09:42:59Z")

</div>

Am I missing something really obvious here?

I'm trying to make&nbsp;a quick 60 second "grab from source, build and run with -test" video for my colleagues. I was going to make it&nbsp;8 steps:

1. New project

2. Add variables

3. Add BuildPath c:\builds\profiletest

4. Add ProjPath %BuildPath%\proj\win

But it fails on point 4 because I get the pink pop-up telling me that BuildPath isn't defined. It is - I just defined it. When does a new variable start getting recognized by the expression parser?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 22, 2008, 4:08am UTC](https://www.finalbuilder.com/forums/t/adding-variables/1011/2 "2008-10-22T04:08:24Z")

</div>

Hi Oliver   
  
 You didn’t say exactly how you were adding the variables (there are multiple ways, but I’m guessing that it’s through the Edit Variables dialog. The issue here is that the expression parser doesn’t know about newly added variables as it only looks at the “live” variable namespaces, and those new variables only get added to the namespaces when you click on ok. We have a todo item for the next major release to make it possible for the expression parser to see these newly added variables before the dialog is closed.   
  
 If you add the variables by right clicking on the variables node in the project tree it should work as expected.

---

<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: [October 27, 2008, 7:00am UTC](https://www.finalbuilder.com/forums/t/adding-variables/1011/3 "2008-10-27T07:00:26Z")

</div>

Ah, I was using the Tools \> Edit Variables dialog

- Oliver
