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 #45 background imageLoading...
Page #45 background image
33
Chapter 4 BASIC Commands
IF THEN [ELSE…]
Purpose To provide a decision structure for single-line conditional execution.
Syntax IF condition THEN action1 [ELSE action2]
Remarks conditionis a logical expression.
actionis a BASIC statement.
Example
IF Data1% > Data2% THEN
Temp% = Data1%
ELSE
Temp% = Data2%
IF THEN {ELSE IF} [ELSE] END IF
Purpose To provide a decision structure for multiple-line conditional execution.
Syntax IF condition1 THEN
Statementblock1
{ELSE IF condition2 THEN
Statementblock2}
[ELSE
StatementblockN]
END IF
Remarks conditionis a logical expression.
Statementblockcan be multiple lines of BASIC statements.
Example
IF LEFT$(String1$, 1) = “A” THEN
PRINT “String1 is led by A.”
ELSE IF LEFT$(String1$, 1) = “B” THEN
PRINT “String1 is led by B.”
ELSE
PRINT “String1 is not led by A nor B.”
END IF

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