You are probably looking for the contains operator.
CFIF isDefined(FullName) and FullName contains Jr.
Yes! That's exactly what I was looking for. Strange, when I typed contain,
contains, and contained in the Using ColdFusion option in Dreamweaver, it
did not show that operator as part of
How about using FindOneOf?
cfif isDefined(FullName) AND findOneOf(jr, mr, mrs,FullName)
This is a good option, I didn't think of checking for multiple abbreviations
(e.g., II, III, Sr., etc.).
Thanks,
Roberto
~|
AdobeĀ®
Hi all,
Is it possible to use IN (or a similar syntax) as part of a CFIF tag? Let's say
that I have a variable (FullName) and I want to know if that string includes
the contraction Jr., for instance. I know I cannot have:
CFIF isDefined(FullName) and FullName IN Jr.
but is there any
)
[EMAIL PROTECTED]
www.csioklahoma.com
-Original Message-
From: Roberto Perez [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2008 4:48 PM
To: CF-Talk
Subject: use of IN operator in CFIF tag
Hi all,
Is it possible to use IN (or a similar syntax) as part of a CFIF tag? Let's
say that I have
Look into the Find() or FindNoCase() functions to do this.
On Mon, Jun 30, 2008 at 3:47 PM, Roberto Perez [EMAIL PROTECTED]
wrote:
Hi all,
Is it possible to use IN (or a similar syntax) as part of a CFIF tag? Let's
say that I have a variable (FullName) and I want to know if that string
PROTECTED]
Sent: Monday, June 30, 2008 3:48 PM
To: CF-Talk
Subject: use of IN operator in CFIF tag
Hi all,
Is it possible to use IN (or a similar syntax) as part of a CFIF tag?
Let's say that I have a variable (FullName) and I want to know if that
string includes the contraction Jr
cf-talk@houseoffusion.com on Monday, June 30, 2008 at 1:47 PM -0700 wrote:
CFIF isDefined(FullName) and
(
FullName IN Jr.
How about using FindOneOf?
cfif isDefined(FullName) AND findOneOf(jr, mr, mrs,FullName)
~|
AdobeĀ®
cfif findnocase( Jr., FullName )
-- Josh
- Original Message -
From: Roberto Perez [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Monday, June 30, 2008 1:47 PM
Subject: use of IN operator in CFIF tag
Hi all,
Is it possible to use IN (or a similar syntax) as part
8 matches
Mail list logo