Summary

Until this chapter, the variables I've used and discussed have been simple variables capable of holding only one bit of data at a time. Day 15 introduced you to the concept of "packaging" your data, or using special variable constructs called lists, structures, and arrays to store more than one bit of data in a single variable. The contents of all three variable types can be displayed with the <CFLOOP> tag.

Lists are comma-delimited values that can be passed from template to template by way of URLs, just like standard variables. Lists can be created with the <CFSET> tag, by the results of a query, or by a form that returns multiple values for a single variable. Once defined, lists are valuable tools for tasks such as performing searches ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.