EasyManuals Logo

Tandy 1000 User Manual

Default Icon
337 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 #264 background imageLoading...
Page #264 background image
Basic
With numeric data, relational operators compare
2
pieces of data
and the result is either
true
orfake. If the relationship is true, BASIC
returns
-1.
If
the relationship
is
false, BASIC returns
0
(zero).
Relational operators are usually used within an IFlTHEN statement.
For example, the command:
IF
A
=
1
THEN PRINT llCORRECT1i
displays the word CORRECT if the variable A is equal to
1.
With string data, relational operators compare character by
character. When
2
characters do not match, BASIC checks to see
which character has the lower ASCII value. The character with the
lower value comes before the word with the higher value. Leading
blanks are significant in string comparisons. The ASCII code for
blank is
32.
PRINT
"A"
<
rlB1l
compares the ASCII value of the
2
strings. The ASCII value for A
is
65,
and the ASCII value for B is
66.
Because
65
is less than
66,
BASIC returns
-1.
Tandy
1000
13

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals