# How to I determine which variable to use based on a boolean?

**URL:** <https://forums.unrealengine.com/t/how-to-i-determine-which-variable-to-use-based-on-a-boolean/450946>\
**Category:** Blueprint\
**Tags:** boolean, flow-control, bool, node, unreal-engine, question, Blueprint\
**Created:** [June 19, 2019, 6:42pm UTC](https://forums.unrealengine.com/t/how-to-i-determine-which-variable-to-use-based-on-a-boolean/450946 "2019-06-19T18:42:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItsGabeGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ItsGabeGames](https://forums.unrealengine.com/u/ItsGabeGames)\
**Post date:** [June 19, 2019, 6:42pm UTC](https://forums.unrealengine.com/t/how-to-i-determine-which-variable-to-use-based-on-a-boolean/450946/1 "2019-06-19T18:42:08Z")

</div>

I’m wondering if there’s a node that can take two bool values, and use them depending on another bool value as illustrated below:

 ![280222-question.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/b/91bdf2fdd0df5c7fefd574795a06ddb128b01b27.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 19, 2019, 8:06pm UTC](https://forums.unrealengine.com/t/how-to-i-determine-which-variable-to-use-based-on-a-boolean/450946/2 "2019-06-19T20:06:59Z")

</div>

_Select_ node. It works with bools and more.

---

<div class="post-metadata">

**Author:** ![ItsGabeGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ItsGabeGames](https://forums.unrealengine.com/u/ItsGabeGames)\
**Post date:** [June 19, 2019, 8:36pm UTC](https://forums.unrealengine.com/t/how-to-i-determine-which-variable-to-use-based-on-a-boolean/450946/3 "2019-06-19T20:36:34Z")

</div>

That’s exactly what I need. Thanks!
