Or/and operator is split tree mask

Hello!

I cannot figure out why the AND operator is not working in the mask for the split tree component while the OR is working. Kindly help.

I am attaching the screenshot and GH file for your reference.


or-and_split tree.gh (5.8 KB)

I appreciate any help you can provide.

and should work

Rhino - Chapter 3: Advanced Data Structures

Seems you can just put two rules after another without β€˜and’ in between.

@rajaa is that supposed to be like this?

2 Likes

Then it seems there is no difference between the OR and AND operator. I thought the AND operator would fulfill either both the conditions or nothing. Correct me if I have got this wrong.

Hi @priyesh41098
The syntax is correct, but the logic of the mask as you put it correctly produce nulls (because no index is between 1 to 4 and at the same time is either 7 or 8)! Null is the expected value.

Following is an example of using And, Does that help?

2 Likes

Hello @rajaa
Thank you so much for your response. I get it now.

1 Like