![background image](http://html1.mh-extra.com/html/xantech/crm-wic/crm-wic_reference-manual_3156372045.webp)
45
Range (in) Operator
The ‘in’ operator compares a numerical value or variable against a range variable. The resultant type is an
integer value of either 0 or 1. If the value is within the range, 1 is returned; otherwise, 0 is returned.
For example, assume Count has a value of 15, Range10 has a value of 1 to 10, and Range20 has a value
of 1 to 20
This expression...
... resolves to this value.
Count in Range10
0
Count in Range20
1
Escaping Special Characters
Escape characters can be placed anywhere in an expression, though the expression will fail to evaluate if
the escape character causes an invalid expression. The escape character should be placed within quotes
when defining an expression, e.g. "\m". Quotes are not needed if the "(expression)" check box is
UNCHECKED for the event or action. Valid escape codes are:
Code Name
Description
\a
bell alert
Character code: 0x07
\b
backspace
Character code: 0x08
\d
Date
Represents the date as a string:
MM/DD/YYYY
\f
Form feed
Character code: 0x0C
\g
Trigger data
Data that triggered the current Event
\m
Time
Time that the current event was triggered
at: HH:MM:SS in 24hr format
\n
New line or linefeed
Character code: 0x0D
\o
Origin that triggered
event
Port number, variable name, etc. The
value depends on the type of event.
\r
Carriage return
Character code: 0x0A
\t
Horizontal tab
Character code: 0x09
\v
Vertical tab
Character code: 0x0B
\'
Single quote
Character code: 0x27
\"
Double quote
Character code: 0x22
\\
Backslash
Character code: 0x5C
\?
Question mark
this is needed, because wild cards will be
identified by * and ? within the string.
\*
Asterisk
Character code: 0x2A
Summary of Contents for CRM-WIC
Page 1: ...Reference Manual Programming Guide Room Monitor Web Intelligent Controller Model CRM WIC...
Page 8: ...8 Hardware User Interface Hardware User Interface for the CRM WIC...
Page 16: ...16 For full details see the RPC section at the end of this manual...
Page 43: ...43 This expression resolves to this value 0 1 4 3 1 Hello Hello 0...
Page 98: ...98 Index...