39
Operators
The operators that are supported are:
•
Arithmetic operations: +, -, *, /
•
Logical comparison operators: ==, != , <, >
•
Logical operators: &&, ||, !
•
Bitwise operators: &, | , ~
•
Range operator: in
Addition/Plus (+) Operator
The ‘+’ operator is used to append one string to another, or to add two integer values together.
Adding a number to a string will produce a string with the number (as text) appended to the end. Adding
a string to a number results in just the number (unless the string contains a value that can be converted to
a number).
For example:
This expression...
... resolves to this value.
3+4 7
"Hello"+" "+"There"
"Hello There"
"Hello"+3 "Hello3"
3+"Hello" 3
3+"6" 9
Subtraction/Minus (-) Operator
The subtraction operator works with both numerical values and strings values. Use this operator with
strings to remove a substring from a source string, or use this operator to subtract two integer values.
For example:
This expression...
... resolves to this value.
6-2 4
"Hello"-"ll" "Heo"
"Hello"-"ll" "Heo"
10-"3" 7
Содержание 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...