CFIF / CFELSEIF / CFIF
I am new to coldfusion and need to create an automated email that will send emails depending on what the company name is. I can get the cfif / cfelse statement to work properly. When I try to get the cfif / cfelseif / cfelse the cfelseif appears to not be evaluated. Here is a segment of code.
<cfquery name="get_ticket_info" datasource="#application.datasource#"username="#application.datasource_username#" password="#application.datasource_password#">
SELECT * FROM
tbl_Tickets
WHERE ID_NO = <cfqueryparam cfsqltype="cf_sql_smallint" value="#id#">;
</cfquery>
<cfif get_ticket_info.customer_name is "Company A"><cfset tolist="john.doe@companyA.com">
<cfelseif get_ticket_info.customer_name is "Company B"><cfset tolist="jane.doe@companyB.com">
<cfelse><cfset tolist="frank.doe@companyY.com">
</cfif>
