# How to pass in variables at run time

**URL:** https://www.finalbuilder.com/forums/t/how-to-pass-in-variables-at-run-time/1215
**Category:** Discussion
**Created:** [May 23, 2009, 12:49pm UTC](https://www.finalbuilder.com/forums/t/how-to-pass-in-variables-at-run-time/1215 "2009-05-23T12:49:53Z")
**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: [May 23, 2009, 12:49pm UTC](https://www.finalbuilder.com/forums/t/how-to-pass-in-variables-at-run-time/1215/1 "2009-05-23T12:49:53Z")

</div>

I'm new to Final Builder and taking over a project built by someone else.

There is a Final Builder web interface that is used to define certain variables that get passed in to the Final Builder project when it runs. If I open the Final Builder project and run it manually, it fails because certain variables are not defined. I can add steps to define these variables, but then I&nbsp;have to take them back out so that the web interface works properly.

Is there a way I can have Final Builder prompt me to input the variables when I&nbsp;manually run the project or some other way that I can input these variables at run time without adding those steps into the project?

---

<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: [May 26, 2009, 12:39pm UTC](https://www.finalbuilder.com/forums/t/how-to-pass-in-variables-at-run-time/1215/2 "2009-05-26T12:39:34Z")

</div>

Hi Mike,   
  
 You have a few options to work around this issue, the first would be to use the ‘Enhanced Prompt for Variable’ action which will continue the build process using the specified default values if the project is being run under FinalBuilder Server or from the console in non-interactive mode. Your other option would be to use the If…Then action to test whether the %ISSERVERBUILD% or %ISINTERACTIVEBUILD% is set to true, or alternatively if you only have a single action which shouldn’t be run you can set an ‘Execute Condition’ on the action.   
  
 Regards,   
 Paul.

---

<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: [May 26, 2009, 7:36am UTC](https://www.finalbuilder.com/forums/t/how-to-pass-in-variables-at-run-time/1215/3 "2009-05-26T07:36:44Z")

</div>

> Posted By Paul Samways on 25 May 2009 05:39 PM   
> Hi Mike,   
>   
> You have a few options to work around this issue, the first would be to use the 'Enhanced Prompt for Variable' action which will continue the build process using the specified default values if the project is being run under FinalBuilder Server or from the console in non-interactive mode. Your other option would be to use the If..Then action to test whether the %ISSERVERBUILD% or %ISINTERACTIVEBUILD% is set to true, or alternatively if you only have a single action which shouldn't be run you can set an 'Execute Condition' on the action.   
>   
> Regards,   
> Paul.

Nice, not only a solution but 3 solutions to choose from.

Thanks!
