EasyManua.ls Logo

Casio PB-100 - Page 49

Casio PB-100
67 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
G O T O A * I C Q t o " o e n u m b e r w h i c h I s t h e r e s u l t o f A * 1 0 0
(jump to line 200 if A is 2)
GOTO #2
GOTO ttX
GOTO #P+1
jump to the P2 program area
jump to the program area which is the value of variable X
(jump to the P8 program area if X is 8)
jump to the program area which is the result of P+1 (jump
to the P5 program area if P is 4)
A GOTO statement is used to repeat program execution from the beginning or to jump
to another program to perform a particular calculation.
5-6-4 Judgement Command
I F s t a t e m e n t
An IF statement is also called a "conditional jump". This command is used to perform
some operation or to jump to a designated location only when a certain condition is
satisfied.
Format: IF comparison expression line number or #w (a2 = 0 through 9)
; command or substitution statement
The comparison expression following the "IF" compares the right side and the left side
of "=" or "^" and if YES, program execution proceeds after the "THEN" or If
NO, program execution proceeds to the next line.
This operation is shown in the flowchart below.
This means that if the IF statement condition is fullled, the process goes in the "YES"
direction and if the IF statement is not fulfilled, the process goes in the "NO" direction.
In other words, an IF statement indicates a branch and selects the next operation as a
result of judgement. An IF statement can be used to terminate a loop (repetition) when
the number of data is unknown or to select the next operation based on a calculation
result, etc.
Constants/variables/numerical expressions/character constants/character variables can bef
used for this comparison.
-48-

Related product manuals