Isnull

From EventScripts Community Encyclopedia


Overview

Syntax: isnull <return var> <test var>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: {{{x}}}

Description

Checks a variable to see whether it is null or not (i.e. "" not just 0)

Parameters

  • return cvar - This is the return variable for the isnull result.
  • test var - This is the cvar you want to check


Examples

//Does this keyvalue exist?
es_xsetinfo myvar 0
es_keygetvalue myvar mykeygroup mykey mykeyvalue
es_xsetinfo return 0
isnull return myvar
if (server_var(return) = 1) then es_xlog The keygroup and key exist but there is no keyvalue set there


Notes

  • This command does not expand variables!

See also


External links

isnull


{{{category}}}

blog comments powered by Disqus