Declares a local variable.
Local Identifier:Type [ = Expression ]
Local Identifier:= Expression
The Local keyword declares a temporary variable of a given type; this variable is valid only within the local scope in which it is declared.
The alternative syntax provided allows the variable's type to be deduced from the expression.
Const | Global | Field
Language reference
Local
sausages
:
Int
=
100
Local
name
:
String
=
"Bill"
Local
thing
:
MyObject
=
New
MyObject