# Not able to test variable after it is set in vars\_prompt section to determine if I should execute the next prompt

**URL:** <https://forum.ansible.com/t/not-able-to-test-variable-after-it-is-set-in-vars-prompt-section-to-determine-if-i-should-execute-the-next-prompt/18217>\
**Category:** Ansible Project\
**Created:** [May 12, 2015, 11:54pm UTC](https://forum.ansible.com/t/not-able-to-test-variable-after-it-is-set-in-vars-prompt-section-to-determine-if-i-should-execute-the-next-prompt/18217 "2015-05-12T23:54:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard.cardoza](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@richard.cardoza](https://forum.ansible.com/u/richard.cardoza)\
**Post date:** [May 12, 2015, 11:54pm UTC](https://forum.ansible.com/t/not-able-to-test-variable-after-it-is-set-in-vars-prompt-section-to-determine-if-i-should-execute-the-next-prompt/18217/1 "2015-05-12T23:54:15Z")

</div>



---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 13, 2015, 12:41pm UTC](https://forum.ansible.com/t/not-able-to-test-variable-after-it-is-set-in-vars-prompt-section-to-determine-if-i-should-execute-the-next-prompt/18217/2 "2015-05-13T12:41:28Z")

</div>

when does not work with vars\_prompt, only with tasks.
