IsArray

Returns TRUE if value is an array.

See also "Array Functions".

Syntax

IsArray(value [, number ])
value

Variable name or array name.

number

Tests if the array has exactly the specified dimension.

Examples

<!--- This example shows IsArray --->
<HTML>
<HEAD>
<TITLE>IsArray Example</TITLE>
</HEAD>

<BODY>
<H3>IsArray Example</H3>

<!--- Make an array --->
<CFSET MyNewArray = ArrayNew(1)>
<!--- set some elements --->
<CFSET MyNewArray[1] = "element one">
<CFSET MyNewArray[2] = "element two">
<CFSET MyNewArray[3] = "element three">
<!--- is it an array? --->
<CFOUTPUT>
    <P>Is this an array? #IsArray(MyNewArray)#
    <P>It has #ArrayLen(MyNewArray)# elements.
    <P>Contents: #ArrayToList(MyNewArray)#
</CFOUTPUT>

</BODY>
</HTML>       



1