# TWO values at once into change node

**URL:** https://discourse.nodered.org/t/two-values-at-once-into-change-node/63641
**Category:** General
**Created:** [8 June 2022 21:04 UTC](https://discourse.nodered.org/t/two-values-at-once-into-change-node/63641 "2022-06-08T21:04:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![P19CM](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@P19CM](https://discourse.nodered.org/u/P19CM)
#### Post date: [8 June 2022 21:04 UTC](https://discourse.nodered.org/t/two-values-at-once-into-change-node/63641/1 "2022-06-08T21:04:18Z")

</div>

I would like to insert two variables into the node - change longitude and latitude so that I can then generate an http request and I get the weather according to location, but if I give two at once then it does not work for me  
 ![2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/dfb078094faa8eaf878759510a5ec8728e55d61e.png)

only if one is fixed  
 ![1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3d4482004326eb38c8e3fc21c339bd9599c49c6f.png)  
pay and payl are two injects(degrees)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [8 June 2022 21:09 UTC](https://discourse.nodered.org/t/two-values-at-once-into-change-node/63641/2 "2022-06-08T21:09:43Z")

</div>

See [this article in the cookbook](https://cookbook.nodered.org/basic/join-streams) for an example of how to join messages into one object.

---

<div class="post-metadata">

### Author: ![mickym2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickym2/32/36128_2.png) [@mickym2](https://discourse.nodered.org/u/mickym2)
#### Post date: [9 June 2022 02:11 UTC](https://discourse.nodered.org/t/two-values-at-once-into-change-node/63641/3 "2022-06-09T02:11:12Z")

</div>

The messages do not wait for each other. If you want to combine 2 messages use a join node. Inject a payload to the join node with a topic lat and the other msg with a payload and a topic lon.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [8 August 2022 02:11 UTC](https://discourse.nodered.org/t/two-values-at-once-into-change-node/63641/4 "2022-08-08T02:11:46Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
