Why not this
<cfif findnocase("for ",ProductDesc,1) eq 0>
not in string
<cfelse>
is in string
</cfif>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 3:12 PM
To: CF-Talk
Subject: CF 5 CFIF NOT LIKE
I need to verify if a field does NOT contain "FOR " ... I have tried
<CFIF #ProductDesc# IS NOT LIKE "FOR ">FREE GIFT</CFIF>
and
<CFIF #GetProduct# NOT CONTAINS "FOR ">FREE GIFT</CFIF>
but both choke... For now I am using
<CFIF #GetProduct# CONTAINS "FOR "><CFELSE>FREE GIFT</CFIF>
Which is clugy - I need a way to do it without the CFELSE...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4