Loop - HP NW280-200X User Manual

Prime graphing calculator
Table of Contents

Advertisement

IFERR
IFERR ELSE

Loop

FOR
466
IF test1 THEN commands1 END
IF test2 THEN commands2 END
...
[DEFAULT commands]
END;
Evaluates test1. If true, execute commands1 and end the
CASE. Otherwise, evaluate test2. If true, execute
commands2. Continue evaluating tests until a true is
found. If no true test is found, execute default commands,
if provided.
Example:
CASE
THEN RETURN "negative"; END
x 0
IF
THEN RETURN "small"; END
x 1
IF
DEFAULT RETURN "large";
END;
IFERR commands1 THEN commands2 [ELSE
commands3] END;
Executes sequence of commands1. If an error occurs
during execution of commands1, executes sequence of
commands2.
IFERR commands1 THEN commands2 ELSE
commands3 END;
Executes sequence of commands1. If an error occurs
during execution of commands1, executes sequence of
commands2. Otherwise, execute sequence of
commands3.
Syntax: FOR var FROM start TO finish DO commands
Sets variable var to start, and for as long as this variable
is less than or equal to finish, executes the sequence of
commands, and then adds 1 (increment) to var. If DOWNTO
is used the start value of the variable is decreased until the
finish value is reached.
Programming

Advertisement

Table of Contents
loading

Table of Contents