Docs are wrong... backwards actually. 

<cfif client.variable contains "work">
will be true for "rework" or "reworkloop" which was my intention.

Thanks,
Brian


At 04:59 PM 1/15/02 -0500, you wrote:
>Shouldn't this be reversed?  I'd think the arguements should go the 
>other
>way around...  (Assuming you're looking for the word 'Rework' in
>Client.TravType, which seems to be what you're doing).
>
>Dirk
>
>
>> -----Original Message-----
>> From: Brian Scandale [SMTP:[EMAIL PROTECTED]]
>> Sent: Tuesday, January 15, 2002 12:59 PM
>> To:   CF-Talk
>> Subject:      <cfif contains #variable#> failure?
>> 
>> This tag does not seem to work like I would expect. Can anyone shed 
>some
>> light? Very little in the docs about this. I quote the only 
>reference...
>> 
>> "CONTAINS determines whether the value on the left is contained in 
>the
>> value on the right. Returns true if it is."
>> 
>> 
>> <cfif "REWORK" CONTAINS Client.TravType>
>> 
>> The above example returns true if client.travtype = "REWORK" 
>> but returns false if it = "REWORK LOOP"
>> 
>> thank you
>> 
>
>
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to