user manual
Chapter 12: Program Application  205Chapter 12: Program Application  205
HypergeoCD  k
Syntax: HypergeoCDLower value, Upper value, 
n 
value, M value, N value
Function: See “Hypergeometric Cumulative 
Distribution” (page 147).
HypergeoPD  k
Syntax: HypergeoPD 
x value, n value, M value, N 
value
Function: See “Hypergeometric Distribution 
Probability” (page 147).
I
If~Then~ElseIf~Else~IfEnd  Ctrl - If
Syntax 1: If<expression> : Then : [<statement>] ... 
: IfEnd
Function 1:
• If the expression is true, the statement in the Then 
block is executed. After that, execution advances to 
the next statement after IfEnd.
• If the expression is false, execution advances to the 
next statement after IfEnd, without executing the 
statement in the Then block.
Syntax 2: If<expression> : Then : [<statement>] ... : 
Else : [<statement>] ... : IfEnd
Function 2: 
• If the expression is true, the statement in the Then 
block is executed. After that, execution advances to 
the next statement after IfEnd.
• If the expression is false, the statement in the Else 
block is executed instead of the Then block. After 
that, execution advances to the next statement after 
IfEnd.
Syntax 3: If<expression> : Then : [<statement>] ... : 
ElseIf<expression> : Then : [<statement>] ... : IfEnd
Function 3: 
• 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, execution advances to the 
next statement after IfEnd.
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.
• The If~IfEnd loop can be exited using the Break 
command or Return command.
• Do not use the Goto command to exit an If~IfEnd 
loop.
IfEnd  Ctrl - If
See If~Then~ElseIf~Else~IfEnd.
Input  I/O - Input
Syntax: Input<variable name>[,"<string 1>"[,"<string 
2>"]]
Function: When program execution reaches the Input 
command, the user is prompted for input of a value, 
which is assigned to the specified variable.
Description:
• If you do not specify anything for "<string 1>", the 
prompt “<variable name>?” appears by default.
• The text specified for "<string 2>" is used as the 
input dialog box title.
• This command pauses program execution and 
displays a dialog box that contains the text string 
indicated by "<string 1>" and an input box. A text 
string enclosed within quotation marks (" ") or a 
variable name can be specified for "<string 1>".
• Specifying a long text string can cause part of it to 
be cut off when it is displayed in the dialog box.
• When the dialog box appears, input a value into 
the input box and then tap [OK]. This closes the 
dialog box, assigns the input value to the applicable 
variable and resumes program execution.
• Tapping [Cancel] on the dialog box terminates 
program execution.
Note:
• During execution of the Input command, program 
execution is paused for input of data. While a 
program is paused, you can input individual 
mathematical expressions only. You cannot input 
commands or a series of statements joined by 
colons (:).










