TYPEOF()
From Lianjapedia
Revision as of 13:18, 28 March 2019 by Yvonne.milne (Talk | contribs)
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