Determines whether a structure contains data.
structIsEmpty(structure)
→ returns boolean
someStruct.isEmpty()
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
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.