DeleteSVar

DeleteSVar

Description:
Function DeleteSVar deletes a previously set server variable.
Once a variable is deleted, attempts to retrieve the value will return 0 (for integers and floats and NULL for strings.


Parameters:
(varname[])
string varname The name of the server variable to delete.


Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute. There is no variable set with the given name.


Examples:
SetSVarInt("SomeVarName", 69);
 
// Later on, when the variable is no longer needed...
DeleteSVar("SomeVarName");


Related Functions
The following functions may be useful, as they are related to this function in one way or another.