Why is this not returning 0

If the slope is set at level (0) the angle function will return Null, this i know. so when this happens i want to use the value 140.
no matter what i do i can not get this to give me the 140, if slope is level, and or if slope is set at not level, the incresed value to the 140 as worked out by the angle function.

if the script can return 0, (green) this will work i think, but seems to work one way, and not the other! or if reversed then only one option gets through and it fails on the other option.

Try running the text panel through an Integer component first.

The text panel is recognised as a string, not as a number.

1 Like

thank you,

simple when you know !

cheers.