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

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:


Thanks, I will try it !