FutureBasic Logo

<<    Index    >> FutureBasic 5

sgn   function



Syntax:
signOfExpr = sgn(expr)

Description:
Use this function to determine the "sign" of expr. sgn returns:
Example:
This for loop counts up if first < last, and counts down if first > last:
for x = first to last STEP sgn(last-first)
   print x
next


See Also:
for; abs