Difference between revisions of "TYPEOF()"
From Lianjapedia
Barrymavin (Talk | contribs) (→Description) |
Barrymavin (Talk | contribs) (→Example) |
||
Line 47: | Line 47: | ||
unset(cVar) | unset(cVar) | ||
? typeof("cVar") | ? typeof("cVar") | ||
− | + | undefined | |
</code> | </code> | ||
Revision as of 20:53, 26 March 2019
Contents
Purpose
Function to return the data type of an expression
Syntax
TYPEOF(<expC>)
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 <expC> 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