Var |
Variables | |
Aptilis 2 |
Var variable_name
This allows you to 'declare' the variables at the beginning of a sub.
Although Aptilis does not require variables to be declared, if you choose
to do so with 'var' then any undeclared variable found by the parser
will trigger an error. This can help find bugs such as 'nTOtal' typed
incorrectly in places instead of 'nTotal'.
Example:
var tax tax = "16 %" $ print("Tax: ", tax$)