EasyManuals Logo
Home>CipherLab>PDA>8 Series

CipherLab 8 Series User Manual

CipherLab 8 Series
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

Questions and Answers:

Question and Answer IconNeed help?

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

CipherLab 8 Series Specifications

General IconGeneral
BrandCipherLab
Model8 Series
CategoryPDA
LanguageEnglish

Related product manuals