Unvar

Description
Removes a variable from memory. Any reference to it will show as a string, and any evaluation will display an error if debug is set.

Syntax
unvar

Parameters

 * name
 * any existing variable

Examples
var text hello world echo %text unvar text echo %text if ("%text" == "") then echo still exists else echo no longer exists Output with Debug 10:

 test.cmd(6): [var text hello world] test.cmd(7): [echo hello world] hello world test.cmd(8): [unvar text] test.cmd(9): [echo %text] %text test.cmd(10): [if ("%text" == "") then] [Script error in test.cmd(10): Eval (("%text" == "")) contains variable character '%'. Did you use an unassigned variable?] test.cmd(11): [else] test.cmd(11): [echo no longer exists] no longer exists test.cmd(13): [exit]