NXSL:typeof

From NetXMS Wiki
Revision as of 21:28, 21 April 2012 by Victor (talk | contribs) (Created page with "__NOTOC__ Returns the data type for given value. == Syntax == typeof(''value''); == Parameters == :{| |- | ''value'' || Object to get data type for. |} == Return Value...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the data type for given value.


Syntax

typeof(value);


Parameters

value Object to get data type for.


Return Value

data type for given value. Type is returned as lowercase string. The following type names can be returned:

  • null
  • object
  • string
  • real
  • int32
  • int64
  • uint32
  • uint64


Examples

typeof("abc")		->	"string"
typeof(17)		->	"int32"
typeof(17000000000)	->	"int64"
typeof($node)		->	"object"