Value functions in NTGML

Checks
Checks
typeof(value)​

Returns the type of a value as a string.

This is slower than calling the respective is_ function or two.

is_number(value)​

Same as is_numeric.

And the following are extra:

is_object(val)​

Returns whether a value is a struct, but not a wrapper for a data structure/etc.

is_builtin(val)​

Returns whether a value is a wrapper for a data structure/etc. and not a struct.

is_double(val)​

In "legacy" NTGML, is_real is an alias for is_numeric and this is the actual is_real.

Conversions