EasyManuals Logo
Home>Texas Instruments>Calculator>TI-Nspire

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 #349 background imageLoading...
Page #349 background image
Programming 337
You can then use the Goto command at any point in the function or
program to branch to the location that corresponds to the specified
label.
Because a
Goto command is unconditional (it always branches to the
specified label), it is often used with an If command so that you can
specify a conditional test. For example:
À If x>5, branches directly to label GT5.
Á For this example, the program must include commands (such as
Stop) that prevent Lbl GT5 from being executed if x{5.
Using loops to repeat a group of commands
To repeat the same group of commands successively, use one of the loop
structures. Several types of loops are available. Each type gives you a
different way to exit the loop, based on a conditional test.
Loop and loop-related commands reside on the Program Editor’s
Control
and
Transfers menus.
When you insert one of the loop structures, its template is inserted at the
cursor location. You can then begin entering the commands that will be
executed within the loop.
For...EndFor loops
A For...EndFor loop uses a counter to control the number of times the
loop is repeated. The syntax of the
For command is:
Note: The ending value can be less than the beginning value, provided
the increment is negative.
Goto labelName
specifies which Lbl command to branch to
If x>5
Goto GT5
À
Disp x
--------
--------
Á
Lbl GT5
Disp “The number was > 5”

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