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 #607 background imageLoading...
Page #607 background image
Programming 607
If Command
If CommandIf Command
If Command
To execute only one command if a conditional test is true, use the general form:
Ê
Executed only if x>5; otherwise, skipped.
Ë Always displays the value of x.
In this example, you must store a value to x before executing the If command.
Note: Use indentation to make your programs easier to read and understand.
If...Then...EndIf Structures
If...Then...EndIf StructuresIf...Then...EndIf Structures
If...Then...EndIf Structures
To execute one group of commands if a conditional test is true, use the structure:
Ê
Executed only if x>5.
Ë Displays value of:
2x if x>5
•x if x
{5
Ê
Ë
:If x>5
: Disp "x is greater than 5"
:Disp x
Ê
Ê
Ë
:If x>5 Then
: Disp "x is greater than 5"
: 2x!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