| 1 | <h2>Comments</h2> |
| 2 | <pre><code>; Single-line comment |
| 3 | #comments-start |
| 4 | Multi-line |
| 5 | comment |
| 6 | #comments-end |
| 7 | #cs |
| 8 | Multi-line |
| 9 | comment |
| 10 | #ce |
| 11 | ;#comments-start |
| 12 | foo() |
| 13 | ;#comments-end</code></pre> |
| 14 | |
| 15 | <h2>Strings</h2> |
| 16 | <pre><code>"foo'bar'baz" |
| 17 | "foo""bar""baz" |
| 18 | 'foo"bar"baz' |
| 19 | 'foo''bar''baz'</code></pre> |
| 20 | |
| 21 | <h2>Numbers</h2> |
| 22 | <pre><code>2 |
| 23 | 4.566 |
| 24 | 1.5e3 |
| 25 | 0x4fff</code></pre> |
| 26 | |
| 27 | <h2>Booleans</h2> |
| 28 | <pre><code>True |
| 29 | False</code></pre> |
| 30 | |
| 31 | <h2>Keywords and variables</h2> |
| 32 | <pre><code>; Display all the numbers for 1 to 10 but skip displaying 7. |
| 33 | For $i = 1 To 10 |
| 34 | If $i = 7 Then |
| 35 | ContinueLoop ; Skip displaying the message box when $i is equal to 7. |
| 36 | EndIf |
| 37 | MsgBox($MB_SYSTEMMODAL, "", "The value of $i is: " & $i) |
| 38 | Next</code></pre> |