Difference between revisions of "TYPEOF()"
From Lianjapedia
Barrymavin (Talk | contribs) (→Example) |
Yvonne.milne (Talk | contribs) (→Syntax) |
||
Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
− | TYPEOF(< | + | TYPEOF(<exp>) |
==See Also== | ==See Also== |
Revision as of 13:18, 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 <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