Determines whether a value is an array. True, if value is an array, a query column object, or XML. also number = Dimension; function tests whether the array has exactly this dimension
isArray(value [, number])
returns boolean
Name | Type | Required | Default | Description |
---|---|---|---|---|
value | any | Yes | The array in which to check. | |
number | numeric | No | Dimension of the array. |
For CF9+ CF10+
colorArray = ['yellow','green','red'];
writeOutput(isArray(colorArray));
For Lucee4.5+
colorArray = ['yellow','green','red'];
writeOutput(isArray(colorArray));
For CF9+ CF10+
numberArray = [1,2,3];
writeOutput(isArray(numberArray,1));
For Lucee4.5+
numberArray = [1,2,3];
writeOutput(isArray(numberArray,1));