# Use OR node with list of boolean

**URL:** <https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416>\
**Category:** Uncategorized\
**Tags:** dynamo\
**Created:** [April 24, 2024, 5:32pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416 "2024-04-24T17:32:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![heau.a](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@heau.a](https://forum.dynamobim.com/u/heau.a)\
**Post date:** [April 24, 2024, 5:32pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/1 "2024-04-24T17:32:36Z")

</div>

I try to have an OR operation with two list of boolean in input to have on list of boolean in output.

The result is nul instead expected to be True if one of the index of list is True

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/e/0ef78aa48b511e48d986e644d1ea3daddd1dc78d.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [April 24, 2024, 5:42pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/2 "2024-04-24T17:42:04Z")

</div>

What version of Dynamo are you in? Can you confirm those are boolean values? For some reason they aren’t color coded as booleans, so I’m confused as to what’s going on. What if you use the OR operator (`||`) instead?

Edit: I also just noticed that the values you’re checking don’t seem to be recognized as strings either, but they do seem to function properly in the node. Weird.

---

<div class="post-metadata">

**Author:** ![heau.a](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@heau.a](https://forum.dynamobim.com/u/heau.a)\
**Post date:** [April 24, 2024, 5:48pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/4 "2024-04-24T17:48:14Z")

</div>

2.13 version open directly from Robot Structural Analysis  
I manage to filter list with this boolean list thanks to List.FilterByBoolMask node.  
Nevermind it’s working with the operator instead  
Thanks !!!

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [April 24, 2024, 5:49pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/5 "2024-04-24T17:49:05Z")

</div>

Weird. Something seems off. What you have should work. Glad you got it figured out though.

---

<div class="post-metadata">

**Author:** ![heau.a](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@heau.a](https://forum.dynamobim.com/u/heau.a)\
**Post date:** [April 24, 2024, 5:51pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/6 "2024-04-24T17:51:38Z")

</div>

Yes weird, data are extracted from CSV file with Data.ImportCSV node. Some row are number that need to be converted with String.ToNumber node prior to be rounded for example

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [April 24, 2024, 5:58pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/7 "2024-04-24T17:58:01Z")

</div>

I could be wrong but I think the Or will only work with one bool item for each input and not a list.

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/6/8647f7dad4c7f85169244fb12918feb75a7cacce.png)

you could python

```auto
import clr

list1 = IN[0]
list2 = IN[1]
result=[]
for l,i in zip(list1,list2):
	if l == True or i == True:
		result.append("true")
	else:
		result.append("false")

OUT = result

```

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [April 24, 2024, 6:00pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/8 "2024-04-24T18:00:34Z")

</div>

what is the object type ?

 ![Skærmbillede 2024-04-24 195924](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/c/ac169c6f08e10f0588266d18e8ad80eb692c62fd.png)

---

<div class="post-metadata">

**Author:** ![heau.a](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@heau.a](https://forum.dynamobim.com/u/heau.a)\
**Post date:** [April 24, 2024, 6:06pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/9 "2024-04-24T18:06:33Z")

</div>

System.Boolean

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [April 24, 2024, 6:12pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/10 "2024-04-24T18:12:42Z")

</div>

Hey @sovitek , what package is that Or from?

This one doesn’t provide lacing  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cdfc8fc6da0fcfb450dcf85513e60b04f9cd3def.png)

---

<div class="post-metadata">

**Author:** ![heau.a](https://avatars.discourse-cdn.com/v4/letter/h/e9c0ed/32.png) [@heau.a](https://forum.dynamobim.com/u/heau.a)\
**Post date:** [April 24, 2024, 6:14pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/11 "2024-04-24T18:14:12Z")

</div>

Understood, that’s why it was not working !

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [April 24, 2024, 6:14pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/12 "2024-04-24T18:14:23Z")

</div>

Lacing was added a bit later to many of the logical operators. It won’t be available in earlier versions.

Good catch though. That will cause it to fail on lists. The `||` node is usually what you want when comparing two options anyway. Otherwise you can always use `AnyTrue`.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [April 24, 2024, 6:18pm UTC](https://forum.dynamobim.com/t/use-or-node-with-list-of-boolean/100416/13 "2024-04-24T18:18:14Z")

</div>

yeah a version thing 😉 im in 2024
