Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Templates > Tags > <var>

<var>

  <var [static] name="symbolname" [ value="exprinitial-value" ] >

A ``var´´ tag declares a module variable to currently enclosing scope.

Attributes:

name
Name of variable.
value
Optional default value for variable, given as expression. If not given, default value will be undefined.
static
When variable is placed inside class definitions this flag being set indicates that variable should be interpreted as static variable instead of member variable.

See also  | Templates  | Tags  | <module>  | <namespace>  | <class>
Contributes notes:
Add a note
What's new | Anvil