Engine:CCMD varedit: Difference between revisions

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.
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 cal it by name.


This command behaves like a combination of 'var' and 'set', but will never create a variable:
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.