# Duplicating a return node not working as expected

**URL:** <https://forums.unrealengine.com/t/duplicating-a-return-node-not-working-as-expected/330856>\
**Category:** Blueprint\
**Tags:** return, unreal-engine, bug-report, editor, functions, question, Blueprint\
**Created:** [September 3, 2015, 5:15am UTC](https://forums.unrealengine.com/t/duplicating-a-return-node-not-working-as-expected/330856 "2015-09-03T05:15:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [September 3, 2015, 5:15am UTC](https://forums.unrealengine.com/t/duplicating-a-return-node-not-working-as-expected/330856/1 "2015-09-03T05:15:34Z")

</div>

When in a blueprint function,

- duplicate the return node (via right-click _duplicate_, or copy and paste it)
- change the outputs on one

**expected** : it changes the output _on the one return node_

**actual** : it changes the output _on both!_

* * *

It’s therefor not a copy or a duplicate, it’s two individual nodes representing the same node!

The only way it works as expected is if you right-click empty space → _Add return node_.

* * *

![56914-bug1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/3/843c96e88dee2338cf8f5ef05a17f9d478910d23.png)

---

<div class="post-metadata">

**Author:** ![Elewyth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elewyth](https://forums.unrealengine.com/u/Elewyth)\
**Post date:** [September 3, 2015, 8:28am UTC](https://forums.unrealengine.com/t/duplicating-a-return-node-not-working-as-expected/330856/2 "2015-09-03T08:28:31Z")

</div>

Pretty sure this is intended behaviour, as I can’t see in which scenario it would make sense to have multiple return nodes with different output pins. How would a caller of this function know which of these return nodes is used? How can you know which values you will be getting back, if every return node declares completely different pins? When calling the function from somewhere else, you shouldn’t have to know, that the function actually has multiple return nodes, this is an implementation detail.

If you are familiar with C++ (or almost any other programming language), you should see the analogy of having multiple return statements, where you cannot return different types of values for the same function, as the function signature is completely independent of the return statements used.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [September 3, 2015, 8:50am UTC](https://forums.unrealengine.com/t/duplicating-a-return-node-not-working-as-expected/330856/3 "2015-09-03T08:50:00Z")

</div>

you’re right, my bad. I was staring at it for too long and just thought it was the same as macros.

---

<div class="post-metadata">

**Author:** ![JmDevTx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Post date:** [September 3, 2015, 8:50am UTC](https://forums.unrealengine.com/t/duplicating-a-return-node-not-working-as-expected/330856/4 "2015-09-03T08:50:07Z")

</div>

I agree with him, this is likely the intended behavior.
