Program statements – BrightSign BrightScript 3.0 Reference Manual User Manual

Page 35

Advertising
background image

30

PROGRAM STATEMENTS

BrightScript supports the following statement types. The syntax of each statement is documented in more detail later in
this chapter.
Note: BrightScript is not case sensitive.

•

Library

•

Dim

•

= (assignment)

•

End

•

Stop

•

Goto

•

Rem (or ')

•

Print

•

For / To / End For / Step / Exit For

•

For Each / In / End For / Exit For

•

While / End While / Exit While

•

If / Then / Else If / Else / End If

•

Function / End Function / As / Return

Example

Function Main() As Void

dim cavemen[10]


cavemen.push("fred")

cavemen.push("barney")

cavemen.push("wilma")

Advertising