Skip navigation.
Home

Cold Fusion data Types

There are only 3 Advanced data Types supported by Coldfusion.

1. Lists: Group together related items

2. Arrays: Store multiple values in a single variable

3. Structures: Store data within data (this is the most powerful in Coldfusion)

List Example:

<cfset fruit ="apple, orange, chicken">

 

Array Example: Note coldfusion does support 3d arrays

<cfset names arraynew(2)>

<cfset names[1][1]="troy">

<cfset names[1][2]="hahn">

<cfset names[2][1]="john">

<cfset names[2][2]="doe">

 

<cfoutput>

The first name in the array #names[1][1]# #names[1][2]#

</cfoutput>