IF and the Boolean Expressions
67
Axcess Programming Language
The Boolean expression tables in FIG. 22 are a quick reference guide for the result of a Boolean
expression.
Boolean Keywords
The Boolean keywords supported by Axcess are described below:
FIG. 21
An example of how a Boolean expression table is used to compare multiple conditions.
FIG. 22
Sample Boolean truth table results
Boolean Keywords
SELECT...ACTIVE
The SELECT...ACTIVE statement allows easy placement of several branches
from one path.
Syntax:
SELECT
{
ACTIVE (expression 1) : (* Statement 1 *)
ACTIVE (expression 2) : (* Statement 2 *)
ACTIVE (expression 3) : (* Statement 3 *)
(* ...etc. *)
}
Each one of the expressions is evaluated in order, until one is found to be true.
The statements associated with that true expression are then executed, and
the path then flows to whatever statements follow the closing brace. Using a
SELECT...ACTIVE is much preferred to multiple IF...ELSE IF statements, as it
uses less memory and runs faster.
ELSE
If the corresponding IF statement is false, the program will jump to this section
of the IF...ELSE set of statements.
See
IF
for details.
IF
The IF statement provides
conditional branching of pro-
gram flow.
Every IF statement must be followed by an expression enclosed in parenthe-
ses. This provides the beginning of a conditional execution of statements. For
example:
IF (expression)
(* Statement 1 *)
If the expression is true, Axcess executes Statement 1 and then continues with
whatever statements follow. If the expression is false, Statement 1 is ignored. If
Statement 1 is a compound statement, it must be enclosed in braces.
Содержание Axcess
Страница 1: ...instruction manual Software Axcess Programming Language ...
Страница 8: ...vi Axcess Programming Language Table of Contents ...
Страница 12: ...Introduction 4 Axcess Programming Language ...
Страница 22: ...Axcess Basics 14 Axcess Programming Language ...
Страница 38: ...Channel Characteristics 30 Axcess Programming Language ...
Страница 54: ...Levels 46 Axcess Programming Language ...
Страница 62: ...Operators 54 Axcess Programming Language ...
Страница 66: ...Variable Types and Conversions 58 Axcess Programming Language ...
Страница 70: ...Two Dimensional Arrays 62 Axcess Programming Language ...
Страница 80: ...While Keywords 72 Axcess Programming Language ...
Страница 86: ...Using Buffers 78 Axcess Programming Language ...
Страница 94: ...Waits and Timer Keywords 86 Axcess Programming Language ...
Страница 102: ...Using Subroutines 94 Axcess Programming Language ...
Страница 108: ...Include Files and System_Calls 100 Axcess Programming Language ...
Страница 120: ...Compiler Error Messages 112 Axcess Programming Language ...
Страница 124: ...The External_Control Protocol 116 Axcess Programming Language ...
Страница 143: ...Index 135 Axcess Programming Language ...