For example, assuming
MyNumber
has an integer value of
4
:
This expression...
... resolves to this value.
MyNumber/=3
1 (MyNumber is also 1)
MyNumber/=0
0 (MyNumber is also 0)
Bitwise-And Assignment (&=) Operator
The bitwise-and assignment operator performs the logical AND operation bit by bit between an integer
Variable and another integer. The result of the operation is stored in the L-Value of the operator. Refer to
the Bitwise-And operator for an example of the bitwise AND.
Bitwise-Or Assignment (|=) Operator
The bitwise-or assignment operator performs the logical OR operation bit by bit between an integer
Variable and another integer. The result of the operation is stored in the L-Value of the operator. Refer to
the Bitwise-Or operator for an example of the bitwise OR.
Wildcard Characters
There are two special characters used to match one or more characters in a comparison string:
‘*’
Matches one or more characters
‘?’
Matches any single character
Either character can be used anywhere within a string constant. When used with a comparison operator,
“he*”
,
“*llo”
,
“he*o”
, and
“he??o”
will all match the string
“hello”
.
When used to compare “\g” data within a serial or Telnet stream, the use of ‘?’ is more efficient, since the
total number of comparison characters can be known. Use of the ‘*’ could require buffering large
amounts of the incoming data.
Wildcard characters are not limited to expressions only. They can be used within simple text values
(values where the expression check-box is not checked).
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
Summary of Contents for WACI NX-22
Page 36: ......
Page 53: ...Finally drag and drop selected files from your File Explorer...