beautypg.com

Casio SERIES FX-9860G User Manual

Page 408

background image

20070201

8-5-5

Command Reference

Description:

• The default step value is 1.

• Making the starting value less than the ending value and specifying a positive step value

causes the control variable to be incremented with each execution. Making the starting
value greater than the ending value and specifying a negative step value causes the control
variable to be decremented with each execution.

Do~LpWhile

Function: This command repeats specifi c commands as long as its condition is true (non-
zero).

Syntax:

Do

_

:

^

_

:

^

LpWhile < condition>

numeric

expression

Parameters: expression

Description:

• This command repeats the commands contained in the loop as long as its condition is true

(non-zero). When the condition becomes false (0), execution proceeds from the statement
following the LpWhile-statement.

• Since the condition comes after the LpWhile-statement, the condition is tested (checked)

after all of the commands inside the loop are executed.