41
Not-Equal Comparison (!=) Operator
The not-equal comparison operator will compare two tokens, which can be strings or integers. Exactly
opposite to the equal comparison operator, the expression will return 0 if the two tokens are equivalent,
and 1 if they are NOT equal.
For example, assuming
MyNumber
has an integer value of
4
, and
MyName
has a string value of
"John"
:
This expression...
... resolves to this value.
MyNumber!=4 0
MyNumber!="4" 0
MyNumber!=5 1
MyName!="John" 0
0!="John" 0
Greater-Than Comparison (>) Operator
The greater-than comparison operator will compare two tokens, which can be integers. The expression
will return 1 if the first token has a larger value than the second, and 0 if the second value is larger or
equal.
For example, assuming
MyNumber
has an integer value of
4
:
This expression...
... resolves to this value.
MyNumber>5 0
MyNumber>4 0
MyNumber>3 1
Less Than Comparison (<) Operator
The less-than comparison operator will compare two tokens, which can be integers or strings. The
expression will return 1 if the first token has a smaller value than the second, and 0 if the second value is
smaller or equal.
For example, assuming
MyNumber
has an integer value of
4
:
This expression...
... resolves to this value.
MyNumber<5 1
MyNumber<4 0
MyNumber<3 0
Logical-And (&&) Operator
Assume you have two Boolean expressions,
Expression1
and
Expression2
, each returning true
(
1
) or false (
0
). The logical-and operator determines the true or false state of the complex expression
Expression1&&Expression2
using the rules applying to a traditional logical AND statement:
Содержание CRM-WIC
Страница 1: ...Reference Manual Programming Guide Room Monitor Web Intelligent Controller Model CRM WIC...
Страница 7: ...7 Box Contents Box Contents for the CRM WIC Web Intelligent Controller Model CRMWIC Power Adapter...
Страница 8: ...8 Hardware User Interface Hardware User Interface for the CRM WIC...
Страница 16: ...16 For full details see the RPC section at the end of this manual...
Страница 43: ...43 This expression resolves to this value 0 1 4 3 1 Hello Hello 0...
Страница 98: ...98 Index...