Sharp EL-5250, EL-5230 operation manual Equalities and inequalities

Models: EL-5230 EL-5250

1 132
Download 132 pages 32.97 Kb
Page 84
Image 84

Chapter 7: Programming

Equalities and inequalities

These expressions are used to form the conditional statement in the If clause. They are the basis for looping and other flow control operation in programs.

The ‘=’ (equals) sign is also used as a function to form a substitution command for variables.

You can also enter ‘=’ by simply pressing ;=.

Symbols

Key

Description

Examples

operations

 

 

 

 

iC

Equals. This function is also

If B=0 Goto ZERO

=

 

used to form a substitution

A=A+1

 

 

command that assigns a

 

 

 

new value to a variable,

 

 

 

including incrementing or

 

 

 

decrementing.

 

 

 

 

 

<

iD

Less than

If B<0 Goto NGTV

 

 

 

 

<=

iE

Less than or equal to.

If B≥<=0 Goto CALC

 

 

 

 

>=

iF

Greater than or equal to.

If B>=0 Goto RECALC

 

 

 

 

>

iG

Greater than

If B≥>0 Goto PSTV

 

 

 

 

iH

Not equal to.

If A≠B Goto DIF

 

 

 

 

82

Page 84
Image 84
Sharp EL-5250, EL-5230 operation manual Equalities and inequalities