ParameterExist Question
I'm using Coldfusion 9, stand alone. I'm attempting to pull all fields from a table to display as a list, but if a table field is empty I don't want to display that field. I tried using <cfif ParameterExists> for each field but my list returned as a jumbled mess. Here's the code I'm using:
<table width="405px">
<tr>
<td id="family">#Family#</td>
</tr>
<tr>
<td id="line">#Line#</td>
</tr>
<tr>
<td id="model">
<cfif #ParameterExists(Procs.Model1)# IS "yes"><cfoutput>#Procs.Model1#<br></cfoutput><cfelse></cfif>
<cfif #ParameterExists(Procs.Model2)# IS "yes"><cfoutput>#Procs.Model2#<br></cfoutput><cfelse></cfif>
<td>
</tr>
</table>
Thanks for your help!
