FutureBasic Logo

<<    Index    >> FutureBasic

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