Variable that can store and return the numeric values you specify. You can use multiple MyNVar variables in a template by giving them different names.
Syntax
MYNVAR "mynvar_name" = numeric_value
This sets the value of a MyNVar variable.
The "mynvar_name" is not case sensitive, so MYNVAR "Name1" is the same as MYNVAR "name1". You cannot substitute an SVar or a MySVar for "mynvar_name".
MYNVAR "mynvar_name"
This returns the numeric value of the specified MyNVar variable.
Return value
This command returns the numeric value of the specified MyNVar.
If the specified MyNVar has not been set, this command returns the number 0.
Notes
There is no limit to the number of MyNVars that can be used within a template.
To clear a MyNVar, set it to the number 0. To clear all variables, including MyNVars, use the INITVARS command.
All variables, including MyNVars, keep their assigned value until they are cleared or until you exit the GainSeeker module that was running the template. This allows a variable to be set by one template and then used by a subsequent template.
When you save a stored session, all variables – including MyNVars – are saved with the stored sessions. When you open this stored session, the values of these saved variables are retrieved.
Some MyNVar values may be set by template commands. These include:
mynvar_name |
Command |
TD_RunNow |
See also: MYSVAR, NVAR, SVAR, MYNARR, MYSARR
Examples
MYNVAR "Counter" = MYNVAR "Counter" + 1
This formula increments the value of the "Counter" MyNVar by 1.
DISPLAY_DESC (CONCAT "Count: ", CSTR (MYNVAR "Counter"))
This formula displays the value of the "Counter" MyNVar in the box normally used to display the description for the standard.