ColdFusion 9.0 Resources |
Ensuring variable existenceColdFusion generates an error if you try to use a variable value that does not exist. Therefore, before you use any variable whose value is assigned dynamically, you must ensure that a variable value exists. For example, if your application has a form, it must use some combination of requiring users to submit data in fields, providing default values for fields, and checking for the existence of field variable values before they are used. There are several ways to ensure that a variable exists before you use it, including the following:
|