20060301
Switch~Ca
s
e~Default~SwitchEnd
Syntax:
Switch
:
<expression 1>
Case
:
<expression 2>
[<statement>]
…
Break
Case
:
<expression 3> …
[<statement>]
…
Break
…
Case
:
<expression
n
>
[<statement>]
…
Break
[Default]
[<statement>]
…
SwitchEnd
<expression 1> through <expression
n
> should be expressions that produce real
numbers.
Function:
This command executes one of a series of processes based on the value of
<expression>.
De
s
cription
• This command executes the statement following the
Ca
s
e
expression that matches the
Switch
expression.
• If there is no matching
Ca
s
e
expression, the statement following
Default
is executed. If
there is no
Default
specified, a non-match jumps to the statement following
SwitchEnd
.
• You can use a multi-statement command (
:
) in place of the carriage return to separate
statements.
•
Switch~SwitchEnd
can be exited using the
Break
command,
Return
command, or
Goto
command.
Wait
Syntax:
Wait
:
[<expression>]
Function:
This command pauses program execution, and then restarts it after the number of
seconds specified by the expression passes.
De
s
cription
• If you do not specify any expression, program execution is paused until you tap the screen,
or press a key.
• The maximum valid specification for <expression> is 360 seconds (six minutes). Specifying
a value greater than 360 causes program execution to resume after 360 seconds,
regardless of the specified value.
• The ClassPad’s Auto Power Off function is disabled during a pause caused by the
Wait
command.
• If the Auto Power Off trigger time is reached during the pause, program execution resumes.
12-6-14
Program Command Reference
Summary of Contents for ClassPad 330
Page 11: ...20060301 20090601 ClassPad 330 ClassPad OS Version 3 04 ...
Page 277: ...20060301 3 3 10 Storing Functions 3 Tap AND Plot OR Plot ...
Page 779: ...20090601 S Graph Line Clustered C S Graph Line Stacked E 13 9 2 Graphing ...
Page 780: ...20090601 S Graph Line 100 Stacked F S Graph Column Clustered G 13 9 3 Graphing ...
Page 781: ...20090601 S Graph Column Stacked I S Graph Column 100 Stacked J 13 9 4 Graphing ...
Page 782: ...20090601 S Graph Bar Clustered K S Graph Bar Stacked 9 13 9 5 Graphing ...