ArrayIsEmpty()
Determines if the array is empty.
ArrayIsEmpty( array=array );
Returns: Boolean
Examples
myArray1 = array("Marcus","Sarah","Josefine");
myArray2 = arrayNew(1);
dump(var=arrayIsEmpty(myArray1),label="is myArray1 empty?");
dump(var=arrayIsEmpty(myArray2),label="is myArray2 empty?");
dump(var=myArray1.isEmpty(),label="using member function"); // false
See also
- Arrays
- Decision logic
- array.isEmpty()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)