Difference between revisions of "NXSL:typeof"

From NetXMS Wiki
Jump to navigation Jump to search
Line 10: Line 10:
== Parameters ==
== Parameters ==


:{|
:{| class="wikitable"
|-
|-
| ''value'' || Object to get data type for.
| ''value'' || Object to get data type for.

Revision as of 13:18, 22 November 2017

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
  • array
  • iterator
  • string
  • real
  • int32
  • int64
  • uint32
  • uint64

Examples

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