structIsEmpty

Determines whether a structure contains data.

structIsEmpty(structure) → returns boolean

Member Function Syntax

someStruct.isEmpty()

structIsEmpty 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


Fork me on GitHub