struct.isEmpty()

Determines whether a structure contains data.

struct.isEmpty( )

Returns: Boolean

This function does not take any arguments.

Examples

// 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>");

See also