EasyManua.ls Logo

Emerson DSM314 - Comparison Operators

Emerson DSM314
519 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
User Manual Chapter 12
GFK-1742F Jan 2020
Local Logic Language Syntax 299
12.6 Comparison Operators
The comparison operators form a relational assertion between two operands. The
comparison expression evaluates the conditional based on the operands signed integer
value.
Table 58: Relational Operators
Operator
Meaning
<
Less than
>
Greater than
<=
Less than or equal to
>=
Greater than or equal to
=
Equal to
<>
Not Equal to
Comparison operators may only be used as expressions in conditional statements, and only
one comparison operator may be used per expression.
IF source1 ComparisonOp source2 THEN
Comparison operators have these parts:
Remarks
The following table contains a list of the comparison operators and the conditions that
determine whether the result evaluates to True or False:
Table 59: Local Logic Comparison Operators
Relational
Operator
True if
False if
Less than
<
source1 < source2
source1 >= source2
Less than or equal to
<=
source1 <= source2
source1 > source2
Greater than
>
source1 > source2
source1 <= source2
Greater than or equal to
>=
source1 >= source2
source1 < source2
Equality
=
source1 = source2
source1 <> source2
Inequality
<>
source1 <> source2
source1 = source2
Null Operator (IF Variable
THEN….)
N/A
Variable is Non-Zero
Variable is Zero
Bitwise Logical Operators
BWAND, BWOR,BWXOR,
BWNOT
Result is Non-Zero
Result is Zero

Table of Contents

Related product manuals