Omron TJ2-MC64 - PROGRAMMING Programming Manual page 34

Hide thumbs Also See for TJ2-MC64 - PROGRAMMING:
Table of Contents

Advertisement

BASIC commands
3.2.9
> (Is greater than)
/i
Type
Mathematical function
Syntax
expression1 > expression2
Description
The operator > returns TRUE if expression1 is greater than expression2,
otherwise it returns FALSE.
Arguments
expression1
Any valid BASIC expression.
expression2
Any valid BASIC expression.
Example
IF a > 10 THEN GOTO label1
If variable a contains a value greater than 10, program execution continues at
label label1. Otherwise, program execution continues with the next state-
ment.
See also
N/A
3.2.10 >= (Is greater than or equal to)
/i
Type
Mathematical function
Syntax
expression1 >= expression2
Description
The operator >= returns TRUE if expression1 is greater than or equal to
expression2, otherwise it returns FALSE.
Arguments
expression1
Any valid BASIC expression.
expression2
Any valid BASIC expression.
Example
IF a >=10 THEN GOTO label1
If variable a contains a value greater than or equal to 10, program execution
continues at label label1. Otherwise, program execution continues with the
next statement.
See also
N/A
PROGRAMMING MANUAL
3.2.11 < (Is less than)
/i
Type
Mathematical function
Syntax
expression1 < expression2
Description
The operator < returns TRUE if expression1 is less than
expression2, otherwise it returns FALSE.
Arguments
expression1
Any valid BASIC expression.
expression2
Any valid BASIC expression.
Example
IF a < 10 THEN GOTO label1
If variable a contains a value less than 10, program execution con-
tinues at label label1. Otherwise, program execution continues
with the next statement.
See also
N/A
3.2.12 <= (Is less than or equal to)
/i
Type
Mathematical function
Syntax
expression1 <= expression2
Description
The operator <= returns TRUE if expression1 is less than or equal to
expression2, otherwise it returns FALSE.
Arguments
expression1
Any valid BASIC expression.
expression2
Any valid BASIC expression.
Example
IF a <= 10 THEN GOTO label1
If variable a contains a value less than or equal to 10, program execution con-
tinues at label label1. Otherwise, program execution continues with the next
statement.
See also
N/A
28

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-prtTj1-drtTj1-cortTj1-mlGrt1-ml2Tj1-fl02

Table of Contents