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
For engines that support null, such as Lucee and Railo, null is considered a complex value.
isSimpleValue( javaCast('null', '') ) Expected Result: false
isSimpleValue({}) Expected Result: false
isSimpleValue([]) Expected Result: false
As lists are just strings with delimiters, they are simple values.
isSimpleValue(arrayToList([])) Expected Result: true
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/issimplevalue