Syntax | Description | Example |
---|---|---|
EMPTY() | Returns the empty variant value. |
EMPTY() |
ISARRAY(var) | Returns true if the variant is array. Otherwise returns false. |
ISARRAY(ARRAY(10,20)) |
ISBOOL(var) | Returns true if the variant is a boolean. Otherwise returns false. |
ISBOOL(true) |
ISDATETIME(var) | Returns true if the variant is a date time. Otherwise returns false. |
ISDATETIME(10) |
ISEMPTY(var) | Returns true if the variant is empty. Otherwise returns false. |
ISEMPTY(EMPTY()) |
ISNUM(var) | Returns true if the variant is a number. Otherwise returns false. |
ISNUM(10) |
ISSTR(var) | Returns true if the variant is a string. Otherwise returns false. |
ISSTR(true) |
ISTIMESPAN(var) | Returns true if the variant is a time span. Otherwise returns false. |
ISTIMESPAN(true) |
TOBOOL(var) | Safely casts a variant to a boolean variant. Returns EMPTY, if the cast cannot be performed. |
TOBOOL("false") |
TODATETIME(var) | Safely casts a variant to a data time variant. Returns EMPTY, if the cast cannot be performed. |
TODATETIME("2008-09-15 09:30:41.770") |
TONUM(var) | Safely casts a variant to a number variant. Returns EMPTY, if the cast cannot be performed. |
TONUM(true) TONUM("hello") |