![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585098.webp)
All BASIC commands
Section 4-2
86
4-2-7
= (Assignment)
/i
4-2-8
<> (Is not equal to)
/i
4-2-9
> (Is greater than)
/i
Type
Mathematical function
Syntax
variable = expression
Description
The operator
=
assigns the value of the expression to the variable.
Arguments
•
variable
A variable name.
•
expression
Any valid BASIC expression.
Example
var = 18
Assigns the value 18 to the variable
var
.
See also
N/A
Type
Mathematical function
Syntax
expression1 <> expression2
Description
The operator
<>
returns
TRUE
if
expression1
is not 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 not equal to 10, program execution contin-
ues at label
label1
. Otherwise, program execution continues with the
next statement.
See also
N/A
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 contin-
ues at label
label1
. Otherwise, program execution continues with the
next statement.
See also
N/A
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...