Operator Keywords - AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual

Programming language
Table of Contents

Advertisement

Operators
result of this part of the expression is true, becoming the second condition to the AND operator.
Since both portions of the AND statement are true, statement 1 executes.
X = 2
Y = 7
Z = 12
IF ((X = 2) AND ((Y > 4) OR (Z <= 8)))
(* Statement 1 *)

Operator Keywords

Operator keywords and abbreviations (logical and bitwise) supported in Axcess are listed below.
Operator Keywords
AND (&&)
NOT (!)
OR (||)
XOR (^^)
52
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. *)
}
Use when the opposite of a condition makes the expression true.
Example:
IF (NOT (X = 2))
{
(* If X <> 2, these statements are executed *)
}
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 *)
}
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 *)
}
Axcess Programming Language

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AXCESS CONTROL SYSTEM PROGRAM and is the answer not in the manual?

This manual is also suitable for:

Axcess

Table of Contents