# Custom Flow Control Node

**URL:** <https://forums.unrealengine.com/t/custom-flow-control-node/492779>\
**Category:** Editor Scripting\
**Tags:** flow-control, unreal-engine\
**Created:** [January 31, 2022, 4:06pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779 "2022-01-31T16:06:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeckSmeck1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeckSmeck1](https://forums.unrealengine.com/u/DeckSmeck1)\
**Post date:** [January 31, 2022, 4:06pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779/1 "2022-01-31T16:06:57Z")

</div>

Hello,

I ama beginner.

It would be handy for me if there was a flow control node with two execution input pins and one execution output pin and one Boolean output pin. If the execution flow happens through input pin 1 only, the built in Boolean is true, otherwise it is false.

Can we build a custom node like this?

Thank you!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 31, 2022, 4:24pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779/3 "2022-01-31T16:24:03Z")

</div>

I correct myself, you can’t do that.

Can you show the code you’re trying to replace?

You could do this

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/6/376b8978cb6c7d916f027af75bf46ff3b323e977.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/8/1b8555391858618b3a2244fab31ba14a8b6becf4.png)

But it doesn’t make any sense, because you can’t run both inputs at the same time…

---

<div class="post-metadata">

**Author:** ![DeckSmeck1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeckSmeck1](https://forums.unrealengine.com/u/DeckSmeck1)\
**Post date:** [February 1, 2022, 5:03pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779/4 "2022-02-01T17:03:24Z")

</div>

I am not saying this Task works at all. I am still trying to figure out what I am doing, but I was interested in saving myself from having to make a variable in the Task blueprint for whether I succeeded at the task. I don’t think that this cast after the begin event node can ever fail but every cast node I have used so far has a success and fail output pin but not a Boolean output. I was looking for a way to complete the Finish Execute node with the right Boolean value without having to make a variable.

 ![Custom Node Question](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/7/da752a61613ba89ae95745aa853548f10afcf4b1.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:** [February 1, 2022, 5:08pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779/5 "2022-02-01T17:08:02Z")

</div>

This maybe:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/c/bdcde17756772efdf5bcb882b642644d0396826f.png)

So you can then:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/2/43236624cb98bdd2255fd5127cb43160bc250090.png)

But why not just:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/3/613dfd00c246b33cd875f68cbdb63cab923a5862.png)

---

<div class="post-metadata">

**Author:** ![DeckSmeck1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeckSmeck1](https://forums.unrealengine.com/u/DeckSmeck1)\
**Post date:** [February 1, 2022, 5:11pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779/6 "2022-02-01T17:11:16Z")

</div>

I notice a mistake here too. I need to connect the other Boolean value to the Finish Execute node. That is not possible though. So this is the way.

 ![Custom Node Question 2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/5/7b5705c8668f6a6e0a48a715cb0049d7e32196bd.png)

---

<div class="post-metadata">

**Author:** ![JoSf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoSf](https://forums.unrealengine.com/u/JoSf)\
**Post date:** [February 1, 2022, 5:14pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779/7 "2022-02-01T17:14:00Z")

</div>

You can have multiple finish execute nodes as endpoints.

---

<div class="post-metadata">

**Author:** ![DeckSmeck1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeckSmeck1](https://forums.unrealengine.com/u/DeckSmeck1)\
**Post date:** [February 1, 2022, 5:16pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779/8 "2022-02-01T17:16:31Z")

</div>

Oh! Like this. Thank you very much.

 ![Custom Node Question 3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/9/ba99ca6c41b0a21f70ae09632cd239a2adcc9033.png)

---

<div class="post-metadata">

**Author:** ![DeckSmeck1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeckSmeck1](https://forums.unrealengine.com/u/DeckSmeck1)\
**Post date:** [February 1, 2022, 5:23pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779/9 "2022-02-01T17:23:06Z")

</div>

Thanks! I didn’t get that I could just duplicate the node. Ha!

---

<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:** [February 1, 2022, 5:37pm UTC](https://forums.unrealengine.com/t/custom-flow-control-node/492779/10 "2022-02-01T17:37:25Z")

</div>

> [@DeckSmeck1](#):
>
> I notice a mistake here too. I need to connect the other Boolean value to the Finish Execute node. That is not possible though. So this is the way.

You can connect only one and will work fine. These 2 perform identical function:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/9/be9d754864b75b486865e9be77a993ec98d0dd98.png)

If the execution flows through the top bit:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/c/9cccf6dbaca0c257607914b9fed9ff0865e37148.jpeg)

It will actually return `True`. Blueprint magic.
