0

How can I delete a variable after it's been used?

Basically, I want a way to delete X if Y equals 10, so that X cannot be used again until the program finishes.

24th Oct 2018, 4:57 PM
Codie B
Codie B - avatar
2 odpowiedzi
+ 2
you can not delete variables in the middle of the execution of program. variable will automatically get deleted when scope of the variable gets over.
25th Oct 2018, 11:50 AM
Tanay
Tanay - avatar
+ 1
Thanks for the input, I see what you mean now. I wasn't thinking straight, all I had to do was change the variable to something else
26th Oct 2018, 12:29 AM
Codie B
Codie B - avatar