# Two paths into one variable

**URL:** <https://community.postman.com/t/two-paths-into-one-variable/57261>\
**Category:** Help Hub\
**Tags:** variables, postman-flows\
**Created:** [February 3, 2024, 6:26am UTC](https://community.postman.com/t/two-paths-into-one-variable/57261 "2024-02-03T06:26:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonic-sw](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@sonic-sw](https://community.postman.com/u/sonic-sw)\
**Post date:** [February 3, 2024, 6:26am UTC](https://community.postman.com/t/two-paths-into-one-variable/57261/1 "2024-02-03T06:26:28Z")

</div>

Dear community,

I have an if/else flow. As outcome I create a user, in another I filter for one.  
At the end of each flow, both paths shall fill the same variable with an user.id.

I noticed that the two paths cannot connect to one variable. Would you recommend doing this to archive this?

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/8/58e3616c08296473c73f53cf1ed26e2345ecb0db.png)

---

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [February 3, 2024, 6:44am UTC](https://community.postman.com/t/two-paths-into-one-variable/57261/2 "2024-02-03T06:44:36Z")

</div>

Hi @sonic-sw

I’ll bring this up with the team. Variables in flows aren’t meant to be set more than once, so this was to prevent the possibility of the variable being set twice. There is a workaround if you’re only setting the value once though which is to put both values into an output block (or any other block) then send that output to the variable instead:

 ![Screenshot 2024-02-02 at 10.42.07 PM](https://us1.discourse-cdn.com/getpostman/original/3X/8/5/85f27a784e35a3384c149ba8f34271d4991f957d.png)

Improving how variables work in flows is something we’re working on though.

---

<div class="post-metadata">

**Author:** ![sonic-sw](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@sonic-sw](https://community.postman.com/u/sonic-sw)\
**Post date:** [February 3, 2024, 7:01am UTC](https://community.postman.com/t/two-paths-into-one-variable/57261/3 "2024-02-03T07:01:52Z")

</div>

Dear @flows-daniel,

I will change to the Output as it simpler then my temp IF statement 😉  
Thank you

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 4, 2024, 9:28am UTC](https://community.postman.com/t/two-paths-into-one-variable/57261/4 "2024-02-04T09:28:05Z")

</div>

Closed on February 4, 2024, 9:28am UTC


