GetFromBase
Get a variable from base.
Syntax
vv = GetFromBase(varname,defval)
Inputs
- varname
- Variable name.
- defval
- Default value if variable name is not found.
Outputs
- vv
- Variable that was retrieved from base.
Example
Get q variable from the base. If not found, value 0 is used.
q = GetFromBase('q', 0);