beautypg.com

Programming chapter 8 – Casio fx-7400G PLUS Programming User Manual

Page 29

background image

153

Programming

Chapter 8

Description:

1. 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.

2. 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 com-
mand (

^), or carriage return (_).

Example: Lbl 1 : ?

→ A :

A > 0

A

^

Goto 1

With this program, inputting a value of zero or greater calculates and displays the
square root of the input value. Inputting a value less than zero returns to the input
prompt without calculating anything.

k

k

k

k

k Clear Commands (CLR)

ClrGraph

Function: This command clears the graph screen.

Syntax: ClrGraph

_

Description: This command clears the graph screen during program execution.

ClrList

Function: This command clears list data.

Syntax: ClrList

_

Description: This command clears the contents of the currently selected list (List 1
to List 6) during program execution.

ClrText

Function: This command clears the text screen.

Syntax: ClrText

_

Description:

This command clears text from the screen during program execution.

k

k

k

k

k Display Commands (DISP)

DrawStat

Function: This draws a statistical graph.

Syntax:

DrawStat

_

This manual is related to the following products: