# 2 lists of booleans in "and" function

**URL:** <https://forum.dynamobim.com/t/2-lists-of-booleans-in-and-function/77932>\
**Category:** Lists-Logic\
**Created:** [June 23, 2022, 8:35am UTC](https://forum.dynamobim.com/t/2-lists-of-booleans-in-and-function/77932 "2022-06-23T08:35:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco.dejong](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@remco.dejong](https://forum.dynamobim.com/u/remco.dejong)\
**Post date:** [June 23, 2022, 8:35am UTC](https://forum.dynamobim.com/t/2-lists-of-booleans-in-and-function/77932/1 "2022-06-23T08:35:33Z")

</div>

Hi,

So I was wondering how you can make the “And” node working with two different lists full of booleans.  
For example:  
list1:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/0/7056cdb1e860a31613f3d77de8c60ff22e7fb214.png)  
list2:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/8/d8c4db5823372b7ae6c696bd8047b646eb6cb080.png)

Result  
1: true  
2: false  
3: false  
4: false  
5: false  
6: false  
7: false  
8: true  
9: false  
10: false  
etc

Thanks in advance!

Edit:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/f/7f91e278b56d05e703301978ce650694ea430123.png)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [June 23, 2022, 8:49am UTC](https://forum.dynamobim.com/t/2-lists-of-booleans-in-and-function/77932/2 "2022-06-23T08:49:16Z")

</div>

@remco.dejong ,

what do you want? join the list?

or count all true and false together?

 ![grafik](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/0/404eedfaae2a322f3eca40e6e66a63b74896215a.png)

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [June 23, 2022, 8:49am UTC](https://forum.dynamobim.com/t/2-lists-of-booleans-in-and-function/77932/3 "2022-06-23T08:49:47Z")

</div>

Use the &&

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

---

<div class="post-metadata">

**Author:** ![remco.dejong](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@remco.dejong](https://forum.dynamobim.com/u/remco.dejong)\
**Post date:** [June 23, 2022, 8:53am UTC](https://forum.dynamobim.com/t/2-lists-of-booleans-in-and-function/77932/4 "2022-06-23T08:53:42Z")

</div>

I wanted it to check if both values were true, and if it were so then make it display a true value  
if only one of the two, or none is a “true” then it should display false, just like Alien commented below.

---

<div class="post-metadata">

**Author:** ![remco.dejong](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@remco.dejong](https://forum.dynamobim.com/u/remco.dejong)\
**Post date:** [June 23, 2022, 8:54am UTC](https://forum.dynamobim.com/t/2-lists-of-booleans-in-and-function/77932/5 "2022-06-23T08:54:02Z")

</div>

Great thanks, exactly what I needed. Of some nodes you just dont know the existence.
