Whatever message this page gives is out now! Go check it out!
StructIsEmpty(structure)Parameter | Description |
structure | Structure to test. |
<cfscript>
myStruct = {a:1,b=2,c=3,d=4,e=5};
isEmpty=StructIsEmpty(myStruct); //Returns false since myStruct is not empty
WriteOutput(isEmpty & " | ");
// Try to find if struct is empty in a struct that does not exist
try{
StructIsEmpty(myAnotherStruct);
}
catch(any s){
WriteOutput(s.message); //Display required message
}
</cfscript><cfscript>
myStruct = {a:1,b=2,c=3,d=4,e=5};
myEmpty=myStruct.isEmpty();
WriteOutput(myEmpty);
</cfscript>