Program judgment problem

In the picture.
I want to deal the PolyCurve question.
So I use List.Contains to determine if the list contains PolyCurve.NumberOfCurves==1.
If it contains, it will execute the node in the blue box.And connect the result to the purple box.
If not included, the result in the yellow box will be directly connected to the purple box.
I have no idea how to reach this way. Does anyone have an idea?

Are you looking to create floor if its true?

The part of the judgment is mainly used to deal with the round place.
Whether or not to build a floor

Why are you using Curve.SplitByParameter and also could you expand errors which you’re getting on nodes. Is this what you’re trying to do?

or may be its better if you show us values of your results.

You may misunderstand what I mean.
The main problem is
I use List.Contains to determine if the list contains PolyCurve.NumberOfCurves==1.
If it contains, it will execute the node in the blue box.And connect the result to the purple box.
If not included, the result in the yellow box will be directly connected to the purple box.

Use Curve.SplitByParameter is intended to cut because the circle causes an error.
But not the place for this problem.

List.FilterByBoolMask - in to one branch, out to the other.

As noted in my other post, here is an example of the List.FilterByBoolMask diverting the flow of data into two branches:

Note that this same method works equally well when things only go in one direction:

1 Like

Seems like this has been suggested somewhere before. :grin:

1 Like