Name

IsSimpleValue

Synopsis

                  IsSimpleValue(value)

Returns true if the specified value is a number, string, Boolean, or date/time object or false if it isn’t. Examples:

<cfset MyArray = ArrayNew(1)>
<cfset MyArray[1]="George">
<cfset MyArray[2]="Jeff">
   
<cfoutput>
IsSimpleValue(123): #IsSimpleValue(123)#<br>
IsSimpleValue('abc'): #IsSimpleValue('abc')#<br>
IsSimpleValue('123,abc,456,def'): #IsSimpleValue('123,abc,456,def')#<br>
IsSimpleValue(MyArray): #IsSimpleValue(MyArray)#<br>
IsSimpleValue(true): #IsSimpleValue(true)#<br>
IsSimpleValue(11/11/02): #IsSimpleValue(11/11/02)#<br>
</cfoutput>

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.