Difference between revisions of "TYPEOF()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (→Example) |
Yvonne.milne (Talk | contribs) (→Example) |
||
Line 46: | Line 46: | ||
string | string | ||
unset(cVar) | unset(cVar) | ||
− | ? typeof( | + | ? typeof(cVar) |
undefined | undefined | ||
</code> | </code> |
Latest revision as of 13:19, 28 March 2019
Contents
Purpose
Function to return the data type of an expression
Syntax
TYPEOF(<exp>)
See Also
ATOH(), BIN2I(), BIN2L(), BIN2W(), CAST(), CTOD(), CTOT(), DTOC(), DTOM(), DTOS(), DTOV(), ERROR(), ERRNO(), ETOS(), HTOA(), I2BIN(), ISALPHA(), ISDIGIT(), L2BIN(), MESSAGE(), MTOS(), STR(), STRZERO(), TTOC(), TTOD(), TYPE(), VAL(), VARTYPE(), VTOD()
Description
The TYPEOF() function returns the data type of the expression in <exp> as a character string. The return value is one of the following:
Return Value |
---|
array |
boolean |
currency |
date |
datetime |
null |
number |
object |
string |
undefined |
Example
? typeof(10.05 * 23.87) number ? typeof("'Hello World'") string cVar = "Hello World" ? typeof(cVar) string unset(cVar) ? typeof(cVar) undefined