EasyManuals Logo

Texas Instruments Titanium TI-89 User Manual

Texas Instruments Titanium TI-89
1008 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 #608 background imageLoading...
Page #608 background image
Programming 608
Note: EndIf marks the end of the Then block that is executed if the condition is true.
If...Then...Else... EndIf Structures
If...Then...Else... EndIf StructuresIf...Then...Else... EndIf Structures
If...Then...Else... EndIf Structures
To execute one group of commands if a conditional test is true and a different group if
the condition is false, use this structure:
Ê
Executed only if x>5.
Ë Executed only if x{5.
Ì Displays value of:
• 2x if x>5
• 5x if x
{5
If...Then...ElseIf... EndIf Structures
If...Then...ElseIf... EndIf StructuresIf...Then...ElseIf... EndIf Structures
If...Then...ElseIf... EndIf Structures
A more complex form of the If command lets you test a series of conditions. Suppose
your program prompts the user for a number that corresponds to one of four options. To
test for each option (
If Choice=1, If Choice = 2, etc.), use the If...Then...ElseIf...EndIf
structure.
Ê
Ê
Ë
Ë
Ì
:If x>5 Then
: Disp "x is greater than 5"
: 2x!x
:Else
: Disp "x is less than or
equal to 5"
: 5x!x
:EndIf
:Disp x

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments Titanium TI-89 and is the answer not in the manual?

Texas Instruments Titanium TI-89 Specifications

General IconGeneral
Display TypeLCD
Display Resolution160 x 100 pixels
Memory188 KB RAM, 2.7 MB Flash ROM
TypeGraphing Calculator
DisplayMonochrome
ProcessorMotorola 68000
Processor Speed12 MHz
Power Source4 AAA batteries
ConnectivityUSB
ProgrammingTI-BASIC, Assembly
Operating SystemAMS (Advanced Mathematics Software)

Related product manuals