(self, name, value)
Set a global variable.

Equivalent to `! global` in RiveScript code. Set to None to delete.
Set a global variable.
Set a global variable .
def set_global(self, name, value):
        """Set a global variable.

Equivalent to `! global` in RiveScript code. Set to None to delete."""
        if value is None:
            # Unset the variable.
            if name in self._gvars:
                del self._gvars[name]
        self._gvars[name] = value
def set_global ( self , name , value ) : if value is None : # Unset the variable. if name in self . _gvars : del self . _gvars [ name ] self . _gvars [ name ] = value