Texas Instruments TI-73 Car Stereo System User Manual


 
292
Appendix A: Function and Instruction Reference
73A-ENG.DOC AppxA: Function/Instruction Reference, English Julie Hewlett Revised: 07/29/98 1:10 PM Printed:
05/19/99 9:03 AM Page 292 of 36
If–Then
:
If
condition
:
Then
:block (if true)
:
End
8
CTL
Programming commands; if condition is true
(non-zero), then block is executed. If condition is
false (zero), then block is skipped.
PROGRAM:THEN
:1
Ü
X:10
Ü
Y
:If X<10
:Then
:2X+3
Ü
X
:2Y3
Ü
Y
:End
:Disp (X,Y)
:Pause
If–Then–Else
:
If
condition
:
Then
:block1 (if true)
:
Else
:block2 (if false)
:
End
8
CTL
Programming commands; if condition is true
(non-zero), then block1 is executed. If condition is
false (zero), then block2 is executed.
PROGRAM:ELSE
:Input "X=",X
:If X<0
:Then
:X
Ü
Y
:Else
:X
Ü
Y
:End
:Disp X,Y
:Pause
IndpntAsk
-f
Selects the
Indpnt: Ask
TABLE SETUP
format setting.
Table asks the user for independent variable (X)
values.
IndpntAuto
-f
Selects the
Indpnt: Auto
TABLE SETUP
format setting.
Table automatically displays independent variable (X)
values.