Determines whether the specified array is empty of data.
Returns a Boolean TRUE if specified array is empty, FALSE if not empty.
See also ArrayLen.
ArrayIsEmpty(array)
Name of the array you want to check for data.
<!--- This example shows ArrayIsEmpty ---> <HTML> <HEAD> <TITLE>ArrayIsEmpty Example</TITLE> </HEAD> <BODY> <H3>ArrayIsEmpty Example</H3> <!--- create a new array ---> <CFSET MyArray=ArrayNew(1)> <!--- populate an element or two ---> <CFSET MyArray[1]="Test"> <CFSET MyArray[2]="Other Test"> <!--- output the contents of the array ---> <P>Your array contents are: <CFOUTPUT>#ArrayToList(MyArray)#</CFOUTPUT> <!--- check if the array is empty ---> <P>Is the array empty?: <CFOUTPUT>#ArrayIsEmpty(MyArray)#</CFOUTPUT> <P>Now, clear the array: <!--- now clear the array ---> <CFSET Temp=ArrayClear(MyArray)> <!--- check if the array is empty ---> <P>Is the array empty?: <CFOUTPUT>#ArrayIsEmpty(MyArray)#</CFOUTPUT> </BODY> </HTML>