# struct.isEmpty()

Determines whether a structure contains data.

```
struct.isEmpty( )
```

**Returns:** boolean

*This function does not take any arguments.*

# Examples

```1
// Non empty struct
animals = {
	cow: "moo",
	pig: "oink"
};
// Empty struct
farm = {};
// animals.isEmpty()
echo("<p>Animals struct is empty: " & animals.isEmpty() & "</p>");
// farm.isEmpty()
echo("<p>Farm struct is empty: " & farm.isEmpty() & "</p>");
```

# Categories

[Structures](../../../categories/struct.md), [Decision logic](../../../categories/decision.md)

# See Also

[StructIsEmpty()](../../functions/structisempty.md), [Struct](../struct.md)