My Nesting CFIF skills are a little rusty and I am looking for some help with this tag.
I am retrieving a name and address from a database where some addresses have a 2 line address and some a 3 line address. I want ColdFusion to output the address as it is written on snail mail (in the U.S.).
Here is what I am looking for:
<cfoutput query="queryname" datasource="datasource">
#firstname# #mid_int# #lastname#<br>
#address1#<br>
#address2#<br> (if it exists)
#address3#<br> (if it exists)
#city#, #state# #postcode#
</cfoutput>
I am looking for the most efficient way to write this.
Any help is very much appreciated as pressed and on a deadline.
Thanks!
sh
I am retrieving a name and address from a database where some addresses have a 2 line address and some a 3 line address. I want ColdFusion to output the address as it is written on snail mail (in the U.S.).
Here is what I am looking for:
<cfoutput query="queryname" datasource="datasource">
#firstname# #mid_int# #lastname#<br>
#address1#<br>
#address2#<br> (if it exists)
#address3#<br> (if it exists)
#city#, #state# #postcode#
</cfoutput>
I am looking for the most efficient way to write this.
Any help is very much appreciated as pressed and on a deadline.
Thanks!
sh