dim Statement

dim declares a new variable. The variable has a name and either a type or an initial value. If an initial value is provided, then the type is inferred from that value. If a type is provided, then a default initial value is chosen for that type.
Use const to declare a constant that cannot be changed.
Use dim list, dim map, and dim set to efficiently build the contents of a collection at the same time as declaring it.


dim <VARIABLE> as <TYPE>


The following simple example declares a new variable named x. The initial value is 5, and so the type of the variable is Number.
dim myVariable = 5