The following are the conditional and loop functions you can use in COD scripts. In most cases, the syntax can be copied/pasted directly into a file and function properly. They should be edited for your particular use. This allows you to short cut your time by not having to experiment to figure out code syntax.
Type | Example |
---|---|
Do - Loop Until | dim count = 10 |
Do Until - Loop | dim count = 10 |
Do While - Loop | dim count = 5 |
Do - Loop While | dim count = 5 |
For – Next | dim mynum |
For – Next – Step | dim mynum |
If | dim mynum = 1 |
If (on one line only) | dim mynum = 1 |
If - Else | dim mynum = 1 |
If - Else (on one line only) | dim mynum = 1 |
If – ElseIf - Else | dim mynum = 1 |
Select Case | dim mynum = 3 |
Select Case Else | dim mynum = 3 |
While | dim loop = 1 |