IF and the Boolean Expressions
68
Axcess Programming Language
Boolean Keywords (Cont.)
IF...ELSE
The IF...ELSE statements are similar to the basic IF statement, with the addi-
tion of an alternative instruction. If the expression is false, Axcess executes a
statement independent of the true expression. For example:
IF (expression)
(* Statement 1 *)
ELSE
(* Statement 2 *)
If the expression is true, then Statement 1 is executed and Statement 2, under-
neath the ELSE statement, is ignored. If the expression is false, then State-
ment 2 is executed. Statement 1 is automatically ignored if the expression is
false.
IF...IF ELSE
The IF...ELSE IF set of statements allow an essentially unlimited number of
paths. Axcess stops at the first true expression and executes the following
statement. Upon completion, it goes on to the rest of the program. For exam-
ple:
IF (expression)
(* Statement 1 *)
ELSE IF (expression)
(* Statement 2 *)
ELSE IF (expression)
(* Statement 3 *)
(* As many Else If statements as memory
allows... *)
A last ELSE statement (not ELSE IF) can be placed at the end as a default
statement. In that case, if Axcess does not find a true IF or ELSE IF statement,
it executes the final ELSE statement. This last ELSE statement is not neces-
sary.
Содержание 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 ...