# Split list into true and false

**URL:** <https://discourse.mcneel.com/t/split-list-into-true-and-false/170765>\
**Category:** Grasshopper\
**Tags:** mac, rhino7, grasshopperrhino\
**Created:** [December 5, 2023, 1:37pm UTC](https://discourse.mcneel.com/t/split-list-into-true-and-false/170765 "2023-12-05T13:37:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cevanna\_von\_Borstel](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cevanna_von_borstel/32/524505_2.png) [@Cevanna\_von\_Borstel](https://discourse.mcneel.com/u/Cevanna_von_Borstel)\
**Post date:** [December 5, 2023, 1:37pm UTC](https://discourse.mcneel.com/t/split-list-into-true-and-false/170765/1 "2023-12-05T13:37:49Z")

</div>

Hi everyone,

I am trying to split a list of true and false values into 2 lists that only contain true or false values.  
I tried to use the cull, partition and dispatch component but I don’t know how to clarify that all false values should be cut.

Does anyone know how to do this ?  
Thanks in advance

 ![Bildschirmfoto 2023-12-05 um 14.33.37](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/2/f/b2f616b4c21d814ce75f48d9157c8a1354eda886.png)

---

<div class="post-metadata">

**Author:** ![Japhy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/japhy/32/487647_2.png) [@Japhy](https://discourse.mcneel.com/u/Japhy)\
**Post date:** [December 5, 2023, 1:42pm UTC](https://discourse.mcneel.com/t/split-list-into-true-and-false/170765/2 "2023-12-05T13:42:53Z")

</div>

Something like this? or is there a more complex tree structure?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/f/5/5f5e85536dad3cc21d1e70968b4500f2d41bc475.png)  
[CreateSet.gh](https://discourse.mcneel.com/uploads/short-url/2zCh22JcBaKNKXmheBGFdFbCEHy.gh) (11.4 KB)

---

<div class="post-metadata">

**Author:** ![Cevanna\_von\_Borstel](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/cevanna_von_borstel/32/524505_2.png) [@Cevanna\_von\_Borstel](https://discourse.mcneel.com/u/Cevanna_von_Borstel)\
**Post date:** [December 5, 2023, 9:52pm UTC](https://discourse.mcneel.com/t/split-list-into-true-and-false/170765/3 "2023-12-05T21:52:26Z")

</div>

It worked, thank you !

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [December 5, 2023, 10:40pm UTC](https://discourse.mcneel.com/t/split-list-into-true-and-false/170765/4 "2023-12-05T22:40:14Z")

</div>

I’m not quite sure why yet but my index values for ‘True’ and ‘False’ match your Member Index ‘Index’ output values.

![split list_2023Dec5a](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/3/c/53c8f06f5b98814d7f686202c7df774f8910c94d.png)  
[split list\_2023Dec5a.gh](https://discourse.mcneel.com/uploads/short-url/kt4ILNB14edkNt4wMELaFKlNEp3.gh) (10.1 KB)

**P.S.** Oh ❗ You are using the Jitter ‘Indices’ output… ❓

---

<div class="post-metadata">

**Author:** ![Japhy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/japhy/32/487647_2.png) [@Japhy](https://discourse.mcneel.com/u/Japhy)\
**Post date:** [December 5, 2023, 10:48pm UTC](https://discourse.mcneel.com/t/split-list-into-true-and-false/170765/5 "2023-12-05T22:48:17Z")

</div>

Your solution is simpler.

They match because the jittered True/False is what is being indexed & your Series is just the count from 0. Change the series start value and it works as expected.
