beautypg.com

Casio FX-CG10 User Manual

Page 302

background image

8-18

Isz (Count Jump)

Function: This command is a count jump that increments the value of a control variable by 1,
and then jumps if the current value of the variable is zero.

Syntax:

Variable Value ≠ 0

Isz :

_

:

^

Variable Value = 0

Parameters: variable name: A to Z,

r

,

θ

[Example] Isz A : Increments the value assigned to variable A by 1.

Description: This command increments the value of a control variable by 1, and then tests
(checks) it. If the current value is non-zero, execution continues with the next statement.
If the current value is zero, execution jumps to the statement following the multi-statement
command (:), display command (

^), or carriage return ( _).

(Jump Code)

Function: This code is used to set up conditions for a conditional jump. The jump is executed
whenever the conditions are false.

Syntax:

True

_

:

^

False

Parameters:

• left side/right side: variable (A to Z,

r

,

θ ), numeric constant, variable expression (such as:

A × 2)

• relational operator: =,

≠, >, <, ≥, ≤ (page 8-24)

Description:

• The conditional jump compares the contents of two variables or the results of two

expressions, and a decision is made whether or not to execute the jump based on the results
of the comparison.

• If the comparison returns a true result, execution continues with the statement following

the

⇒ command. If the comparison returns a false result, execution jumps to the statements

following the multi-statement command (:), display command (

^), or carriage return ( _).

This manual is related to the following products: