In a message dated 7/15/02 06:39:08 Eastern Daylight Time, CJCOLE@QINETIQ.COM writes: > If sbearing1 < abearing1 then > If abearing1 - sbearing1 > 58 > goto cw > Else > goto acw > Try this: if sbear < abear and abear-sbear>58 then goto cw else goto acw endif Sid -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu