Description

Determines the type of a value.

Returns

True, if value is a string, number, Boolean, or date/time value; False, otherwise.

Category

Syntax

IsSimpleValue(value)

See also

Parameters

Parameter

Description

value

Variable or expression

Example

 

<cfscript>
    string = "hello World";
    num = 1;
    result = IsSimpleValue(string);
    result = IsSimpleValue(num);
    result = IsSimpleValue(Now());
    writeoutput("Is a string a simplevalue: " & result & "<br>");
    writeoutput("Is a number a simplevalue: " & result & "<br>");
    writeoutput("Is a date/time a simplevalue: " & result & "<br>");
</cfscript>

Output

Is a string a simplevalue: YES
Is a number a simplevalue: YES
Is a date/time a simplevalue: YES

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy