How do you check a condition from a reply to a query?
===

I need to bcc someone if `agencyType_ID` in the `company` table is 2. How do I do this? So far I've got


	<cfquery name="checkAgencyType" datasource="#APPLICATION.primaryDSN#">
		SELECT * FROM company WHERE agencyType_ID=2
	</cfquery>
And inside the `<cfmail>` I would have

    <cfif query=”checkAgencyType”>bcc=”joe@example.com”></cfmail>

