Learning ColdFusion 9: The Ternary Operator

<!--- Create raw data. --->
<cfset data = "Tricia" />
 
<!---
	We want all of our data to be referenced as an array.
	If its not in array format already, make it so.
--->
<cfset data = (isArray( data ) ? data : [ data ]) />
 
<!--- Output new data value. --->
<cfdump
	var="#data#"
	label="Data: Converted Raw Data"
	/>

For Cut-and-Paste