If ( then , else) in dynamo

in code blocks you can use if and else as well,

 

if (condition)

{ // do this thing

}

else{

//do that thing

}

you may need to put this inside an imperative block like

 

result = [imperative]{

a = 0;

if(100<200){

a = 10;

}

return = a;

}

(not tested)

 

1 Like