Table of Contents

del

Description

Delete a variable.

Function prototype

void del <varref:var>

Arguments

Name Type Comment
var varref A reference to the variable to be deleted.

Return value

None (void).

Example

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

Comments

None.

See also