# How to add condition like if statments for blueprint?

**URL:** <https://forums.unrealengine.com/t/how-to-add-condition-like-if-statments-for-blueprint/300632>\
**Category:** Blueprint\
**Tags:** how-would-you-do-it, condition, box-trigger, unreal-engine, editor, Blueprint, question\
**Created:** [December 5, 2014, 2:25am UTC](https://forums.unrealengine.com/t/how-to-add-condition-like-if-statments-for-blueprint/300632 "2014-12-05T02:25:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBdev\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DBdev\_1](https://forums.unrealengine.com/u/DBdev_1)\
**Post date:** [December 5, 2014, 2:25am UTC](https://forums.unrealengine.com/t/how-to-add-condition-like-if-statments-for-blueprint/300632/1 "2014-12-05T02:25:02Z")

</div>

I’m making a door that is triggered to open when the player enters the trigger box && presses the E button while in the trigger box, how would I go about making it so that you have to be in the trigger box and to be pressing e to make the door open, because currently only pressing E where ever you are in the map opens the door. If you could attach a screenshot of soltuion that would be great, thanks.

---

<div class="post-metadata">

**Author:** ![Mortusnyte](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mortusnyte](https://forums.unrealengine.com/u/Mortusnyte)\
**Post date:** [December 5, 2014, 7:11am UTC](https://forums.unrealengine.com/t/how-to-add-condition-like-if-statments-for-blueprint/300632/2 "2014-12-05T07:11:00Z")

</div>

Hope this helps.

 ![23032-opendoor.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/c/38c8fe1185f0a38bf9cdf940301f0fcd6f2eb177.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ed5b4c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ed5b4c7](https://forums.unrealengine.com/u/anonymous_user_2ed5b4c7)\
**Post date:** [December 5, 2014, 7:53am UTC](https://forums.unrealengine.com/t/how-to-add-condition-like-if-statments-for-blueprint/300632/3 "2014-12-05T07:53:53Z")

</div>

Equivalent of **IF** statement - **Branch**

You can read about all flow control nodes in this docs

[https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/FlowControl/index.html](https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/FlowControl/index.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_90179ceb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90179ceb](https://forums.unrealengine.com/u/anonymous_user_90179ceb)\
**Post date:** [July 8, 2016, 9:05am UTC](https://forums.unrealengine.com/t/how-to-add-condition-like-if-statments-for-blueprint/300632/4 "2016-07-08T09:05:53Z")

</div>

Thank you, good man.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3023629b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3023629b](https://forums.unrealengine.com/u/anonymous_user_3023629b)\
**Post date:** [May 25, 2018, 4:14am UTC](https://forums.unrealengine.com/t/how-to-add-condition-like-if-statments-for-blueprint/300632/5 "2018-05-25T04:14:07Z")

</div>

Thank You.
