# array split node

**URL:** https://discourse.nodered.org/t/array-split-node/93313
**Category:** General
**Created:** [21 November 2024 13:42 UTC](https://discourse.nodered.org/t/array-split-node/93313 "2024-11-21T13:42:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Roelof](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@Roelof](https://discourse.nodered.org/u/Roelof)
#### Post date: [21 November 2024 13:42 UTC](https://discourse.nodered.org/t/array-split-node/93313/1 "2024-11-21T13:42:42Z")

</div>

Good afternoon.

I get the following data in my debug  
node: debug 21  
polling : msg.payload : array[8]  
array[8]  
0: false  
1: false  
2: false  
3: false  
4: false  
5: false  
6: false  
7: false

I would like to have only the data 0:False how can I split this so that I can only look at 1 data.

---

<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: [21 November 2024 13:50 UTC](https://discourse.nodered.org/t/array-split-node/93313/2 "2024-11-21T13:50:35Z")

</div>

Use a change node that sets `payload` to `payload[0]`

or just access `msg.payload[0]`

TBH, it depends where you want to use the value.

---

<div class="post-metadata">

### Author: ![Roelof](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@Roelof](https://discourse.nodered.org/u/Roelof)
#### Post date: [21 November 2024 16:20 UTC](https://discourse.nodered.org/t/array-split-node/93313/3 "2024-11-21T16:20:02Z")

</div>

thanks it worked. I use this value to be able to convert it to 1 or 0.

---

<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: [19 February 2025 16:20 UTC](https://discourse.nodered.org/t/array-split-node/93313/4 "2025-02-19T16:20:14Z")

</div>

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