Add conditions to determine whether loft between two cross-sections or not

Hello,
I have already wrote the script to draw the cross sections in the correspond coordinates. However, I want to add a condition ’ if the length > 1000 ’ then do not loft between that two cross sections. is it possible it do this in dynamo?
Many Thanks!

Yes. You’ll need 3 nodes:

Geometry.DistanceTo
>
List.FilterByBoolMask

Thanks, I will try it !