structIsEmpty
Determines whether a structure contains data.
structIsEmpty(structure) → returns boolean
Member Function Syntax
someStruct.isEmpty()
Argument Reference
structure struct Required
Structure to test
Examples Sample code invoking the structIsEmpty function
myStruct={};
writeOutput( structIsEmpty(myStruct) ); Expected Result: true
myStructWithThings={ "one": "foo", "two": "bar"};
writeOutput( structIsEmpty(myStructWithThings) ); Expected Result: false
CF 11+ Lucee 4.5+
myStruct={};
writeOutput( myStruct.IsEmpty() ); 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/structisempty