EasyManuals Logo

Texas Instruments TI-Nspire Software Guide

Texas Instruments TI-Nspire
380 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 #348 background imageLoading...
Page #348 background image
336 Programming
Note: EndIf marks the end of the Then block that is executed if the
condition is true.
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
A more complex form of the If command lets you test for multiple
conditions. Suppose you want a program to test a user-supplied
argument that signifies one of four options.
To test for each option (If Choice=1, If Choice=2, and so on), use the
If...Then...ElseIf...EndIf structure.
Lbl and Goto commands
You can also control the flow by using Lbl (label) and Goto commands.
These commands reside on the Program Editors
Transfers menu.
Use the
Lbl command to label (assign a name to) a particular location in
the function or program.
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
Â
Lbl labelName
name to assign to this location (use the same naming
convention as a variable name)

Table of Contents

Other manuals for Texas Instruments TI-Nspire

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments TI-Nspire Specifications

General IconGeneral
TypeDisplay
Form factorPocket
Product colorBlue, White
Display resolution320 x 240 pixels
Display size (HxV) (imperial)0 \
Compatible operating systemsWindows Vista/XP Mac OS X 10.4/10.5
Battery typeAAA
Number of batteries supported4
Weight and Dimensions IconWeight and Dimensions
Dimensions (WxDxH)100 x 198.3 x 28.7 mm

Related product manuals