EasyManuals Logo
Home>Texas Instruments>Desktop>TI-99/4A

Texas Instruments TI-99/4A User Reference Guide

Texas Instruments TI-99/4A
204 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 #72 background imageLoading...
Page #72 background image
IF-
THEN-ELSE
An alternative format of the
IF-THEN
-ELSE
statement is to use a
numeric'expression with no relationship expressed. In the example
on the right, the computer
will evaluate the expression A +B.
If
the
result is zero. the expression is treated as false. A non-zero result
is
trf'.atf'.O
a~
trtlf':.
Thi"
i"
thp
"amp
a,,:
IF
expression < > a
THEN
line-J.
II-52
Examples:
>NEW
>100
INPUT
"A
IS
":A
>110
INrUT
"0
IS
";0
>120 IF
A+B
THEN
150
>130
PRINT
"RESULT
IS
ZERO,EX
PRESSION
FALSE"
>140
GOTD
100
>150
PRINT
"RESULT
IS
NON-ZER
O,EXPRESSION
TRUE"
>160
GO
TO
100
>RUN
A
IS
2
8
IS
3
RESULT
IS
NON-ZERO,EXPRESSIO
N
TRUE
A IS 2
B IS
-2
RESULT
IS
ZERO,EXPRESSION
FA
LSE.
(Press CLEAR
to
end loop)
User's Reference
GUIde

Other manuals for Texas Instruments TI-99/4A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-99/4A and is the answer not in the manual?

Texas Instruments TI-99/4A Specifications

General IconGeneral
BrandTexas Instruments
ModelTI-99/4A
CategoryDesktop
LanguageEnglish

Related product manuals