/
How can I undefine a variable and free resources?

How can I undefine a variable and free resources?

Q

How can I undefine a variable and free resources?

A

Since variables are managed in tables internally, a variable without an assigned value does not have an entry in the table and therefore the value nil. Using the assignment myvariable = nil an existing variable can be removed from the table again. Also previously occupied resources are released by this statement.

Related content

How are variables internally managed?
How are variables internally managed?
More like this
How can a variable be created?
How can a variable be created?
More like this
How is a "local" variable distinguished from a "global" variable?
How is a "local" variable distinguished from a "global" variable?
More like this
In the configuration tool SYCON.net exists the possibility to define variables outside the script, how can I access to those variables in my script?
In the configuration tool SYCON.net exists the possibility to define variables outside the script, how can I access to those variables in my script?
More like this
Do variables need a data type?
Do variables need a data type?
More like this