20060301
If~Then~El
s
eIf~El
s
e~IfEnd
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
El
s
e
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
El
s
eIf
command expression is tested. If it is true,
the statement in the
El
s
eIf 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
.
12-6-11
Program Command Reference
}
Then <block>
}
Then <block>
}
Else <block>
}
If Then <block>
}
ElseIf Then <block>
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 ...