# Using a value after a spit node

**URL:** <https://discourse.nodered.org/t/using-a-value-after-a-spit-node/87489>\
**Category:** General\
**Created:** [25 April 2024 14:39 UTC](https://discourse.nodered.org/t/using-a-value-after-a-spit-node/87489 "2024-04-25T14:39:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mem16421](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mem16421](https://discourse.nodered.org/u/mem16421)\
**Post date:** [25 April 2024 14:39 UTC](https://discourse.nodered.org/t/using-a-value-after-a-spit-node/87489/1 "2024-04-25T14:39:19Z")

</div>

I feel I understand the basics, with using a value from a message, but at a loss on how you choose one message from a stream after a split node.

I am using a SNMP-table node and using a split, which works well, but the payload "stream" is 16 msgs all with a payload. Using the attachment how would ask for payload[3] for only msg 9 (as highlighted)?

At the moment I am just trying to output this to debug (not sure if that possible)

 ![split-node](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/3/235f077033cf9c15e3f59ae101a2fa2335d561ef.png)

---

<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:** [25 April 2024 14:49 UTC](https://discourse.nodered.org/t/using-a-value-after-a-spit-node/87489/2 "2024-04-25T14:49:28Z")

</div>

> [@mem16421](#):
>
> Using the attachment how would ask for payload[3] for only msg 9

You pick out something recognisable and compare that using a switch node. In your case here, `topic` would be `==` to the string `9`

As for then getting the item 3 of payload, use a change node to Set the value of `msg.payload` to the value of `msg.payload[3]` (or just use `msg.payload[3]` in your next node if it permits that)

* * *

### tip to help you getting correct path to an item

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

---

<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:** [9 May 2024 14:50 UTC](https://discourse.nodered.org/t/using-a-value-after-a-spit-node/87489/3 "2024-05-09T14:50:08Z")

</div>

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