Futurebasic/Language/Reference/sgn

Description
Use this function to determine the "sign" of. returns:  1 if expr is positive; 0 if expr is zero; -1 if expr is negative. 

Example
This loop counts up if first, and counts down if last: