BrightScript supports the following familiar looking statement types:
If / Then / Else If / Else / End If
For / To / End For / Step / Exit For
For Each / In / End For / Exit For
While / End While / Exit While
Function / End Function / As / Return
Rem (or ')
BrightScript is not case sensitive.
Each statement's syntax is documented precisely later in the manual.
Each line may contain a single statement, or a colon ( : ) may be used to separate multiple statements on a single line.