Difference between revisions of "Unset"

From Scriptwiki
Jump to: navigation, search
 
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
  

Revision as of 17:05, 11 September 2005

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

/set sets a variable.
/var sets a local variable.
/unsetall unsets all variables.