isSimpleValue

Returns true only if the value is a string, boolean, numeric, or date.

isSimpleValue(value) → returns boolean

Argument Reference

value any
Required

Examples
Sample code invoking the isSimpleValue function

isSimpleValue(42)

Expected Result: true

isSimpleValue("Hello world")

Expected Result: true

So it can't a be simple value

isSimpleValue(structNew())

Expected Result: false

isSimpleValue(arrayNew(1))

Expected Result: false

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub