GlobalVariableDel

 

what is the best coding practice?

Do I need to use GlobalVariableCheck first before I call GlobalVariableDel

Or I just call GlobalVariableDel will do. 

 
doshur:

what is the best coding practice?

Do I need to use GlobalVariableCheck first before I call GlobalVariableDel

Or I just call GlobalVariableDel will do. 

There is no need to check the existence of a GlobalVariable if you have to delete it. Just delete it and check the returned value to detect an eventual error.

Just my opinion.

 
angevoyageur:

There is no need to check the existence of a GlobalVariable if you have to delete it. Just delete it and check the returned value to detect an eventual error.

Just my opinion.

you mean something like this

if(!GlobalVariableDel("test"))
{
   Print("Error");
}
 
doshur:

you mean something like this

Yes.