Download User Manual

Transcript
For example,
Do While x > 0
:
:
If err_flag == True Then
Goto error_handling
End If
Loop
error_handling:
:
:
//Jump to specified label
(2) Break
This is used to exit a loop. For example,
• While loop
Do While <conditional expression>
Do While <conditional expression>
:
:
If <exit condition expression> Then
Break
// Exit one level
End If
Loop
Loop
• For loop
For i=0 To 10 Step 1
For j=0 To 10 Step 1
:
:
If <exit condition expression> Then
Break
// Exit one level
End If
Next j
Next i
3.6.8
Include Statements
These statements are used to load functions which have been defined in external files
(include files). If functions which are used frequently are placed into an include file,
these functions can be called from multiple agents. Normally, this is expressed in the
following format, in the top lines of the Rule Editor.
include "<external filename 1>.inc"
include "<external filename 2>.inc"
Note: When using multiple include files, write them as one file per line.
86
artisoc User Manual