![background image](http://html1.mh-extra.com/html/amx/softkey-tx-sk/softkey-tx-sk_instruction-manual_2939359024.webp)
Programming
20
TX-SK+ SoftKey Transmitter
Operator Keywords
Operator keywords and abbreviations (logical and bitwise) supported by the T
X
-SK+ are listed
below.
Operator Keywords
AND (&&)
Evaluates two conditions. These conditions must be true for the entire expres-
sion to be true. AND is typically used in IF statements to check for multiple true
conditions.
Example:
IF((X = 1) AND (Y = 2))
{
(* These statements are executed if the
above And statement is true; that is,
if X = 1 is true and Y = 2 is true. *)
}
NOT (!)
Use when the opposite of a condition makes the expression true.
Example:
IF (NOT (X = 2))
{
(* If X <> 2, these statements are executed *)
}
OR (||)
Typically used in IF statements to check for a true condition. The logical opera-
tor OR is used to evaluate two conditions. At least one of the conditions must
be true for the entire expression to be true.
Example:
IF ((X = 1) OR (Y = 2))
{
(* These statements are executed if the above
OR statement is true *)
}
XOR (^^)
Evaluates two conditions. Only one of the conditions can be true for the entire
expression to be true.XOR is typically used in IF statements to check for a sin-
gle true condition.
Example:
IF ((X = 3) XOR (Y = 1))
{
(* These statements are executed if only one of
the above conditions is true *)
}