If then statement question


(Tiscasilaban) #1

if_then_statement_question.gh (11.3 KB)

Hi everybody,

i am trying to split two curves based on their length with an if then statement.

if the curve is (longer than)> 3000 and (smaller than )< 4500 the curve should be split into 2 segments.
if the curve is (longer than)> 6000 and (smaller than )< 7500 the curve should be split into 5 segments.

I am kind of stuck and would appreciate if someone could have a look at my script and give me some advice.

Thank you guys for your support!!!


#2

if_then_statement_question_2018Mar13a
if_then_statement_question_2018Mar13a.gh (11.5 KB)


(Tiscasilaban) #3

Thank you Joseph for your quick response.
Very much appreciated.

I tried it the complicated way.

Thanks again for your support!


#4

This could be another way…

if_then_statement_question_re.gh (19.1 KB)


(Tiscasilaban) #5

thank you HS_Kim for your response
just noticed your reply.

it works as well!!!