Loop - Texas Instruments TI-NSPIRE Software Manual

Cas computer software
Hide thumbs Also See for TI-NSPIRE:
Table of Contents

Advertisement

Loop...EndLoop loops
A
Loop...EndLoop
The
command does not have any arguments.

Loop

Typically, you insert commands in the loop that let the program exit from
the loop. Commonly used commands are:
For example:
0
x
&
Loop
Disp x
x+1
x
&
À
If x>5
Exit
EndLoop
Á
Disp x
À
An
command checks the condition.
If
Á
Exits the loop and jumps to here when
Note: The
Exit
In this example, the
When the If command is:
At the beginning of the loop
At the end of the loop
The
command could also use a
If
control to a specified
340
creates an infinite loop, which is repeated endlessly.
Loop
--------
--------
EndLoop
--------
command exits from the current loop.
command can be anywhere in the loop.
If
(label) command.
Lbl
,
If
Exit
x
increments to 6.
The loop is:
Executed only if the condition is true.
Executed at least once and repeated
only if the condition is true.
command to transfer program
Goto
,
, and
Goto
Lbl
Programming
(label).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-nspire

Table of Contents