Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
Engine:CCMD var
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{dev/uiccmd}} Creates a new variable in the current context, if doesn't exist. If exists is ignored. <kua>var bob fred</kua> == Arguments == * name - name for new variable * value (optional) - the value to set. If no value, then prints value if exists. == Details == Can be used to set defaults for values. == Examples == === Default values === * 'var' called with 'bob' without a value. Variable 'bob' doesn't exist. <kua> > var bob Unknown: bob </kua> * Creates variable 'bob' and sets to 'fred'. <kua> > var bob fred </kua> * Same as the first example, but now bob exists. <kua> > var bob 'bob' is 'fred' </kua> * Try to set 'bob' to 'james', but 'bob' is already set. <kua> > var bob james > var bob 'bob' is 'fred' </kua> == Notes == * If variable already exists, will not trigger any associated events when attempting to set.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Crumb
(
edit
)
Template:Crumbtext
(
edit
)
Template:Dev/uiccmd
(
edit
)
Template:Editlink
(
edit
)
Template:Engine/devnav
(
edit
)
Template:Tocright
(
edit
)
Close
Loading editor…