Unset » History » Revision 5

Revision 4 (Per Amundsen, 11/03/2020 06:17 AM) → Revision 5/6 (Per Amundsen, 03/26/2021 09:42 PM)

_Added in 1.9.0_ 

 */unset [-slg] <%var> [%var..]* 

 Unset local or global variables, local variables take precedence over a global variable with the same name. 

 [[Scripting_Wildcards|Wildcards]] is allowed. 

 _See also [[/var]], [[/set]], [[/inc]], [[/dec]], [[/vars]], [[$var]], [[Variables_Dialog|Edit Variables]]._ [[$var]]._ 


 -s - Prints unset information. 
 -l - Unset local variable(s). 
 -g - Unset global variable(s). 


 <%var> - Variable to unset. 
 [%var..] - Additional variables to unset. 


 alias example { 
   ;Create and fill a variable with data. 
   /set %var1 Variable test. 

   ;Print the variable value. 
   /echo -a %var1 

   ;Unset the variable. 
   unset %var1 

   ;Print the variable value after unset. 
   echo -a %var1