Check to see if variable is in recordset
I have a queryparam recordset in my page (let's call it rs_authorized), and I have a form-submitted value (let's call it form.county). I want to do a <cfif> statement based on whether or not the variable is in the recordset.
I have tried...
<cfif #form.county# EQ <rs_authorized.county_name#>
but it only recognizes if it's the first value of the recordset.
I tried...
<cfif ListFind(#rs_authorized.county_name#,#form.county#)>
but again, it only recognizes if it's the first value of the recordset.
I tried...
<cfif #form.county# IN (#rs_authorized.county_name#)>
but I get an error saying it doesn't recognize the word 'IN'.
Any ideas?