Language Guide
viii
Chapter 7 Control Statements
183
Characteristics of Control Statements 184
Tell Statements 185
Tell (Simple Statement) 188
Tell (Compound Statement) 189
If Statements 190
If (Simple Statement) 192
If (Compound Statement) 193
Repeat Statements 194
Repeat (forever) 197
Repeat (number) Times 198
Repeat While 199
Repeat Until 200
Repeat With (loopVariable) From (startValue) To (stopValue) 201
Repeat With (loopVariable) In (list) 202
Exit 204
Try Statements 204
Kinds of Errors 205
How Errors Are Handled 206
Writing a Try Statement 206
Try 207
Signaling Errors in Scripts 210
Error 210
Considering and Ignoring Statements 213
Considering/Ignoring 214
With Timeout Statements 217
With Timeout 218
With Transaction Statements 219
With Transaction 219
Chapter 8 Handlers
221
Using Subroutines 221
Types of Subroutines 223
Scope of Subroutine Calls in Tell Statements 224
Checking the Classes of Subroutine Parameters 225