Project

General

Profile

Unset » History » Revision 2

Revision 1 (Per Amundsen, 02/14/2014 02:32 AM) → Revision 2/6 (Per Amundsen, 05/24/2018 10:16 AM)

_Added in 1.9.0_ 

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

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

 [[Scripting_Wildcards|Wildcards]] Wildcards is allowed. 

 *Switches* 

 -s - Prints unset information. 

 *Parameters* 

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

 *Example* 

 <pre> 
 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 
 } 
 </pre>