Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-137
Mathematical Operations and Commands
< Less Than
Type:
Arithmetic Comparison Operation
Syntax
<expression1> < <expression2>
Description:
Returns
TRUE
if expression1 is less than expression2, otherwise returns false.
Note:
TRUE
is defined as -1, and
FALSE
as 0
Parameters:
Example:
IF AIN(1)<10 THEN GOSUB rollup
If the value returned from analog input 1 is less than 10 then execute subroutine
“
rollup
”
<= Less Than or Equal
Type:
Arithmetic Comparison Operation
Syntax
<expression1> <= <expression2>
Description:
Returns
TRUE
if expression1 is less than or equal to expression2, otherwise returns
false.
Note:
TRUE
is defined as -1, and
FALSE
as 0
Parameters:
Example:
maybe=1<=0
1 is not less than or equal to 0 and therefore variable
maybe
holds the value 0
Expression1:
Any valid Trio BASIC expression
Expression2:
Any valid Trio BASIC expression
Expression1:
Any valid Trio BASIC expression
Expression2:
Any valid Trio BASIC expression