Project

General

Profile

Unset » History » Version 3

Per Amundsen, 12/01/2018 12:47 AM

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