# Setting user defined variables from Ask Question action

**URL:** https://www.finalbuilder.com/forums/t/setting-user-defined-variables-from-ask-question-action/7222
**Category:** Discussion
**Created:** [May 20, 2022, 8:41am UTC](https://www.finalbuilder.com/forums/t/setting-user-defined-variables-from-ask-question-action/7222 "2022-05-20T08:41:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![abell1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@abell1](https://www.finalbuilder.com/forums/u/abell1)
#### Post date: [May 20, 2022, 8:41am UTC](https://www.finalbuilder.com/forums/t/setting-user-defined-variables-from-ask-question-action/7222/1 "2022-05-20T08:41:11Z")

</div>

In my build, I need to ask a question and execute some actions if the answer is Yes.

However, the Fail options don’t work for me as the build just halts rather than skip indented actions under it and when I try to set a user defined variable, it does not appear in the Variable drop down - only the standard variables are there.

Are both of these by design or is this an error? How can I put a conditional step in my build depending on an answer to a prompt?

many thanks

Andy

---

<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: [May 20, 2022, 8:44am UTC](https://www.finalbuilder.com/forums/t/setting-user-defined-variables-from-ask-question-action/7222/2 "2022-05-20T08:44:19Z")

</div>

Use the option to put the result into a variable, and then use an “If Then” action after that to decide whether to run child actions of the “If then” action.

---

<div class="post-metadata">

### Author: ![abell1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@abell1](https://www.finalbuilder.com/forums/u/abell1)
#### Post date: [May 20, 2022, 8:48am UTC](https://www.finalbuilder.com/forums/t/setting-user-defined-variables-from-ask-question-action/7222/3 "2022-05-20T08:48:21Z")

</div>

I’m trying to do that - but my variable is not appearing in the variable list - it looks like only environment variables are in the drop down…

 ![Screenshot 2022-05-20 094949](https://www.finalbuilder.com/forums/uploads/default/original/2X/9/95810eedac942f83b2f6ecf183e31631e27dd41a.png)

My variable is called isReleaseBuild. I defined it using Project-\>EditVariables.

---

<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: [May 20, 2022, 8:55am UTC](https://www.finalbuilder.com/forums/t/setting-user-defined-variables-from-ask-question-action/7222/4 "2022-05-20T08:55:01Z")

</div>

Not sure why your variable isn’t showing… did you make it a Macro?

This is my quick test of this feature

[AskTest.fbp8](https://www.finalbuilder.com/forums/uploads/short-url/hpJADNc48B2z4GKy99DxSQzrTFR.fbp8) (1.8 KB)

---

<div class="post-metadata">

### Author: ![abell1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@abell1](https://www.finalbuilder.com/forums/u/abell1)
#### Post date: [May 20, 2022, 8:59am UTC](https://www.finalbuilder.com/forums/t/setting-user-defined-variables-from-ask-question-action/7222/5 "2022-05-20T08:59:45Z")

</div>

Vincent

You - I’d made it a Macro by mistake. I’m still new to this ☹

Taking off the Macro setting fixed it.

Thanks

Andy
