To search for a string inside another string, use the Find or FindNoCase function. You can do complex searches with regex using REFind or REFindNoCase.
======================================================================= Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc Member of Team Macromedia Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: FlashGuy [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 10:37 AM > To: CF-Talk > Subject: Checking variables > > > Hi, > > I have two variables. I need to check if the contents of the > first variable exists in the second and if it does to > something and if not do something else. How can I do this > with a <cfif statement? > > Example: > > var1 = mywork > var2= C:\temp,C:\windows,c:\program files,c:\tmp > > DO THIS > > Or it could be > > var1 = mywork > var2= C:\temp,C:\windows,c:\mywork,c:\program files,c:\tmp > > DO SOMETHING ELSE. > > > > --------------------------------------------------- > Colonel Nathan R. Jessop > Commanding Officer > Marine Ground Forces > Guatanamo Bay, Cuba > --------------------------------------------------- > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

