Delete a variable.
void del <varref:var>
Name | Type | Comment |
---|---|---|
var | varref | A reference to the variable to be deleted. |
None (void).
int i // create a new variable 'i' echo <zs:isdef "i"> // is 'i' defined? (it should be) del i // delete 'i' echo <zs:isdef "i"> // is 'i' still defined? (it should not be)
… the output of which is written to the event log by echo as:
true false
None.