StructIsEmpty()
Determines whether a structure contains data.
StructIsEmpty( struct=struct );
Returns: Boolean
| Argument | Description |
|---|---|
|
struct
struct,
required
|
edit
Structure to test Alias: structure, object |
Examples
editNon-Member Function
// Non empty struct
animals = {
cow: "moo",
pig: "oink"
};
// Empty struct
farm = {};
// StructIsEmpty(animals)
echo("<p>Animals struct is empty: " & StructIsEmpty(animals) & "</p>");
// StructIsEmpty(farm)
echo("<p>Farm struct is empty: " & StructIsEmpty(farm) & "</p>");
See also
- Structures
- Decision logic
- struct.isEmpty()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)