EasyManuals Logo
Home>Casio>Calculator>ClassPad 300

Casio ClassPad 300 User Manual

Casio ClassPad 300
670 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
Page #547 background imageLoading...
Page #547 background image
20021201
Syntax 4: If
<expression>
Then
[<statement>] …
ElseIf
<expression>
Then
[<statement>] …
Else
[<statement>] …
IfEnd
Function 4
If the expression is true, the statement in the If Then block is executed. After that,
execution advances to the next statement after IfEnd.
If the If command expression is false, the ElseIf command expression is tested. If it is true,
the statement in the ElseIf Then block is executed. After that, execution advances to the
next statement after IfEnd. If it is false, the Else block statement is executed. After that,
execution advances to the next statement after IfEnd.
Description
•With all four of the syntaxes described above, you can use a multi-statement command (:)
in place of the carriage return to separate Then block statements.
•The If~IfEnd command can be nested.
Example: Input a
Input b
If a < 0
Then
0 S a
If b < 0
Then
0 S b
IfEnd
IfEnd
•The If~IfEnd loop can be exited using the Break command or Return command.
It is always a bad idea to use the Goto command to exit an If~IfEnd loop. Not only is it
poor programming, it can cause problems due to improper termination of internal
processes used by If.
12-6-12
Program Command Reference
}
If Then <block>
}
ElseIf Then <block>
}
Else <block>

Table of Contents

Other manuals for Casio ClassPad 300

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio ClassPad 300 and is the answer not in the manual?

Casio ClassPad 300 Specifications

General IconGeneral
BrandCasio
ModelClassPad 300
CategoryCalculator
LanguageEnglish

Related product manuals