Difference between revisions of "Unset"

From Scriptwiki
Jump to: navigation, search
 
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
Unsets and removes a variable from the variable list.
 
Unsets and removes a variable from the variable list.
  /unset -s <%var>
+
  /unset [-s] <%var>
 
The -s switch gives an output: * Unset %var
 
The -s switch gives an output: * Unset %var
  
Line 12: Line 12:
  
 
== See Also ==
 
== See Also ==
[[Set|/set]] sets a variable.<br />
+
* [[Set|/set]] sets a variable.<br />
[[Var|/var]] sets a local variable.<br />
+
* [[Var|/var]] sets a local variable.<br />
[[Unsetall|/unsetall]] unsets all variables.
+
* [[Unsetall|/unsetall]] unsets all variables.
  
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Variables]]

Latest revision as of 09:04, 2 July 2007

Unsets and removes a variable from the variable list.

/unset [-s] <%var>

The -s switch gives an output: * Unset %var

Note that you can specify a variable with wildcard characters.

Example

/unset %moo

This will unset and remove the variable %moo.

/unset %test*

This will unset and remove all variables that begin with %test.

See Also