# Are split node results true or false?

**URL:** <https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681>\
**Category:** General\
**Created:** [10 September 2020 08:34 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681 "2020-09-10T08:34:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Post date:** [10 September 2020 08:34 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/1 "2020-09-10T08:34:37Z")

</div>

From the output of the `zip` node I did `split` but the results were different although the contents of the zip files **FOLDER\_TEXT.zip** and **FOLDER\_01.zip** were the same.

 ![split-node-1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9f18cf6647e94ad9ad9cc4831c41537e3d960677.png)  
 ![split-node-2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/4456a6124f26e20c24c125b5174864862f613aba.png)

```auto
[{"id":"e6253d00.80925","type":"inject","z":"aa40b590.ff1888","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"str","x":210,"y":1580,"wires":[["6fdd1db2.861504"]]},{"id":"51028220.c1b44c","type":"zip","z":"aa40b590.ff1888","name":"","mode":"decompress","filename":"","outasstring":false,"x":570,"y":1580,"wires":[["1318b85c.7b58b8"]]},{"id":"6fdd1db2.861504","type":"file in","z":"aa40b590.ff1888","name":"","filename":"/Temp/FOLDER_TEXT.zip","format":"","chunk":false,"sendError":false,"encoding":"none","x":390,"y":1580,"wires":[["51028220.c1b44c"]]},{"id":"1318b85c.7b58b8","type":"split","z":"aa40b590.ff1888","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":690,"y":1580,"wires":[["e287e529.e108e8"]]},{"id":"e287e529.e108e8","type":"debug","z":"aa40b590.ff1888","name":"split TEXT","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":1580,"wires":[]}]

```

Are `split` node results true or false?  
I would like the split result of file **FOLDER\_01.zip** to be the same as the split result of file **FOLDER\_TEXT.zip**. Is it possible?

Please tell me!  
Thanks.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [10 September 2020 09:18 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/2 "2020-09-10T09:18:37Z")

</div>

Add debug nodes and check that output of file nodes are exactly the same  
e.g

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/0/b0b885637f486a797191a3c57643d0a850162f1b.jpeg)

---

<div class="post-metadata">

**Author:** ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Post date:** [10 September 2020 09:32 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/3 "2020-09-10T09:32:09Z")

</div>

If your ZIP file name is **Text1\_01.zip** , the result will be different.  
The problem here is that the split result of the ZIP file name is **\_character**.zip different from **\_numberic**.zip  
Like my two ZIP file names are **\_TEXT** and **\_01**  
'-----'  
The result of ZIP file **FOLDER.zip** and **FOLDER\_TEXT.zip** is the same, but will differ from the ZIP file **FOLDER\_01.zip**

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [10 September 2020 09:33 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/4 "2020-09-10T09:33:33Z")

</div>

Sorry - I didn't think correctly 🙂

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [10 September 2020 09:37 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/5 "2020-09-10T09:37:00Z")

</div>

Can you upload the zip files somewhere where we can download them?

---

<div class="post-metadata">

**Author:** ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Post date:** [10 September 2020 09:40 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/6 "2020-09-10T09:40:16Z")

</div>

> [@cymplecy](#):
>
> Can you upload the zip files somewhere where we can download them?

I'll attach the zip file...  
[http://www.mediafire.com/file/8zgpirzg0me9the/FOLDER\_TEXT.zip/file](http://www.mediafire.com/file/8zgpirzg0me9the/FOLDER_TEXT.zip/file)  
[http://www.mediafire.com/file/gq8w1nu1xpbflse/FOLDER\_01.zip/file](http://www.mediafire.com/file/gq8w1nu1xpbflse/FOLDER_01.zip/file)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [10 September 2020 09:44 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/7 "2020-09-10T09:44:38Z")

</div>

When I downloaded them - they have quite different file sizes which implies that they are not similiar

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/79052d3b78bdece28bf4caf6895bb6dd157a155f.png)

---

<div class="post-metadata">

**Author:** ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Post date:** [10 September 2020 09:48 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/8 "2020-09-10T09:48:30Z")

</div>

I don't know why, but each ZIP file has only 3 txt files.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [10 September 2020 10:12 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/9 "2020-09-10T10:12:54Z")

</div>

I think whatever created those files has created them differently

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/1/7191338275d96145d4b9c57924dcf9eae311a4df.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/851ecec3a9151ccea5bad8a0eb8074b58fb7186c.png)

---

<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 November 2020 10:13 UTC](https://discourse.nodered.org/t/are-split-node-results-true-or-false/32681/10 "2020-11-09T10:13:07Z")

</div>

Closed on 9 November 2020 10:13 UTC

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