If statement in code block is only returning false (when using set parameter by name)

Why is an If statement in code block only returning false when using set parameter by name in if statement?


when using if node it works just fine

It might be better if you passed the value for elevation in the if node and set the parameter in a second line. Something like this:

t0 = Ys? 50: -20;
Le.SetParameterByName("Elevation", t0);
2 Likes

Thanks Kenny

Solution to the problem