49
edits
| Line 12: | Line 12: | ||
== Details == | == Details == | ||
Can be used to set or report a value for an existing variable. Will fail if variable does not already exist. | |||
Behaves like a combination of 'var' and 'set', but will never create a variable: | |||
* varedit - Never creates variables, and sets anytime variable already exists. | * varedit - Never creates variables, and sets anytime variable already exists. | ||
* var - Creates and sets variables, only if the variable not yet exist. | * var - Creates and sets variables, only if the variable not yet exist. | ||
| Line 22: | Line 22: | ||
For example, this default command 'varedit' would allow writing a script that was intended to only set certain variables if another service or module had already created them. | For example, this default command 'varedit' would allow writing a script that was intended to only set certain variables if another service or module had already created them. | ||
This is a 'default' command for the global context and is used by simply using the 'name' and 'value' directly in a statement. It does not have a name in global to call it by name. | |||
== Examples == | == Examples == | ||