EasyManuals Logo

CipherLab 8200 User Manual

CipherLab 8200
263 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #44 background imageLoading...
Page #44 background image
32
CipherLab BASIC Programming Part I
4.2 COMMANDS FOR DECISION STRUCTURES
Based on the value of an expression, decision structures cause a program to take one of
the following two actions:
To execute one of several alternative statements within the decision structure itself.
To branch to another part of the program outside the decision structure.
In CipherLab BASIC, decision-making is handled by the IFTHEN[ELSE][ENDIF]
and ONGOSUB|GOTO statement. The IFTHEN[ELSE][ENDIF] statement
can be used anywhere the ONGOSUB|GOTO statement can be used. The major
difference between the two statements is that ONGOSUB|GOTO evaluates a single
expression, and then executes different statements or branches to different parts of the
program based on the result. On the contrary, a block IFTHEN…[ELSE…][ENDIF]
can evaluate completely different expressions.
Moreover, the expression given in the ON expression GOSUB|GOTO statement must
be evaluated by a number in the range 1 to 255, while the expression in
IFTHEN[ELSE][ENDIF] statement can only be evaluated as a TRUE or FALSE
condition.
The IFTHEN[ELSE][ENDIF] statement can be nested up to 10 levels.

Table of Contents

Other manuals for CipherLab 8200

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the CipherLab 8200 and is the answer not in the manual?

CipherLab 8200 Specifications

General IconGeneral
IP RatingIP54
Display TypeLCD
Barcode ScannerLaser
ConnectivityRS-232
I/O PortsRS-232

Related product manuals