Skip to main content

$deleteVar

Deletes the specified variable and returns a boolean value indicating whether the variable was successfully deleted.

Parameters

ParameterDescription
nameName of the variable
hasDeleteReturn a boolean expression if the variable is deleted (default false)
tableTable (default main)

Example

<AoiClient>.addCommand({
name: "delete",
code: `
$print[$deleteVar[var]]
`,
});