Left Toolbar > Math Nodes > Number Sign
The Number Sign node returns the sign of the Number. The sign function result is: -1 if Number < 0 0 if Number = 0 1 if Number > 0
On the left toolbar choose Math Nodes > Number Sign
Drag the Number Sign icon into the Node Graph.
Connect the Output: result.
number A NUMBER type of value.
Result The number value. -1 if Number < 0 0 if Number = 0 1 if Number > 0
Number Number value. This attribute is exposed as input by default.