User`s guide
COMPARISON OPERATORS - Used to compare expressions.
Syntax
result = expression1 comparisonoperator expression2
Operator Description
< Less than
<= Less than or equal to
> Greater than
>= Greater than or equal to
= Equal to
<> Not equal to
CONTROLLING PROGRAM EXECUTION - Using conditional statements and looping statements (also
known as control structures), you can write code that makes decisions and repeats actions.
If...Then...Else
If condition Then statements [Else elsestatements]
Or, you can use the following, more versatile syntax:
If condition Then
[statements]
[ElseIf condition-n Then
[elseifstatements]] . . .
[Else
[elsestatements]]
End If
For...Next
For counter = start To end [Step step]
[statements]
[Exit For]
[statements]
Next
Do...Loop
Do [{While | Until} condition]
[statements]
[Exit Do]
[statements]
Loop
Or, you can use this equally valid syntax:
Do
[statements]
[Exit Do]
[statements]
Loop [{While | Until} condition]
While...Wend
While condition
[statements]
Wend
Appendix A
©
WAVECREST Corporation 2005
280










