Using a conditional statement inside a <div>
I inherited a program that I've had to modify and I am stuck on adding conditions to. I have a very long <cfset> statement that is made up of a table and several divs.
<td style="border-bottom: thin solid black">
<div align="left" class="HeadingTwo">
#DollarFormat(Session.WorkOrderReceipt.amount)# #Session.WorkOrderReceipt.Instrument# #Session.WorkOrderReceipt.CheckNumber#
</div>
</td>This div shows the dollar amount on the receipt and if it's paid with a check then it shows that and then the check number, but since we've added credit/debit cards it would need to show that information as well. So basically, if #Session.WorkOrderReceipt.instrument eq check# then #Session.WorkOrderReceipt.CheckNumber# would be correct, but if #Session.WorkOrderReceipt.Instrument eq creditDebitCard# then #Session.WorkOrderReceipt.creditDebitNumber# would be correct. There is another div that would basically be the same with the exception of the dollar amount.
I'm not sure how to handle this, and any suggestions would be greatly appreciated.
