# Or Statement returns null value when using lists

**URL:** <https://forum.dynamobim.com/t/or-statement-returns-null-value-when-using-lists/55512>\
**Category:** Lists-Logic\
**Tags:** geometry, dynamo\
**Created:** [September 24, 2020, 11:43am UTC](https://forum.dynamobim.com/t/or-statement-returns-null-value-when-using-lists/55512 "2020-09-24T11:43:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [September 24, 2020, 11:43am UTC](https://forum.dynamobim.com/t/or-statement-returns-null-value-when-using-lists/55512/1 "2020-09-24T11:43:21Z")

</div>

Hello everyone,

I tried to create a simple filter inside my script to filter out weird results from Intersecting planes with Curves, but when i try to use an “Or” statement i just get a null value. See Screenshot below:

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

It seems like the Or statement doesnt support lists as input.

I can solve it with a Code Block:

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

But why does the Or statement not support lists?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 24, 2020, 8:31pm UTC](https://forum.dynamobim.com/t/or-statement-returns-null-value-when-using-lists/55512/2 "2020-09-24T20:31:48Z")

</div>

These are two different methods.

`Or`: [Dynamo Dictionary](https://dictionary.dynamobim.com/#/Core/Logic/Action/Or)  
vs  
`||`: [Dynamo Dictionary](https://dictionary.dynamobim.com/#/Operators/Action/Or)

These exist in most languages, including their being under logic actions and operator actions. An explanation on the Python content is available here: [Logical And Comparison Operators In Python – vegibit](https://vegibit.com/logical-and-comparison-operators-in-python/).

---

<div class="post-metadata">

**Author:** ![blsalvio](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@blsalvio](https://forum.dynamobim.com/u/blsalvio)\
**Post date:** [September 25, 2020, 3:00am UTC](https://forum.dynamobim.com/t/or-statement-returns-null-value-when-using-lists/55512/3 "2020-09-25T03:00:51Z")

</div>

hi @Daan,

you are comparing list to another list in the **`Or`** Node that is why the output is `null`. The **`Or`** Node only accepts `singular` values like boolean, int, etc.

 ![a](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/d/ad0801faf5c0d6f616230bc911289a75dee898c1.png)
