Project

General

Profile

Unset » History » Version 1

Per Amundsen, 02/14/2014 02:32 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*/unset [-s] <%var> [%var..]*
4
5
Unset local or global variables, local variables take precedence over a global variable with the same name.
6
7
Wildcards is allowed.
8
9
*Switches*
10
11
-s - Prints unset information.
12
13
*Parameters*
14
15
<%var> - Variable to unset.
16
[%var..] - Additional variables to unset.
17
18
*Example*
19
20
<pre>
21
alias example {
22
  ;Create and fill a variable with data.
23
  /set %var1 Variable test.
24
25
  ;Print the variable value.
26
  /echo -a %var1
27
28
  ;Unset the variable.
29
  unset %var1
30
31
  ;Print the variable value after unset.
32
  echo -a %var1
33
}
34
</pre>