> > <cfif #deptid# contains #session.privileges#> > > Avoid using this on lists > > The main reason is that if you're looking for "1", then it'll > return 10, 11, > 21, etc. etc. > > Try to use the List functions, or extend the CFIf to be; > <cfif ",#deptID#," contains ",#session.priviliges#,"> > which is faster than the List functions This would only work if the item were not the first or last element in the list. Either you would have to use a reg expression or ListFind(list, string [, delimiter]) to search a thru the list. Duane Boudreau CFExperts.Com ------------------------------------------------------------------------------ Archives: http://www.mail-archive.com/[email protected]/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
- RE: Variable IN a list? How to check? Lee Fuller
- Re: Variable IN a list? How to c... Angel Stewart
- RE: Variable IN a list? How to c... Philip Arnold - ASP
- Re: My solution:Variable IN ... Ang�l Stewart
- Re: My solution:Variable IN ... paul smith
- Re: My solution:Variable IN ... Ang�l Stewart
- RE: My solution:Variable IN ... Chris Evans
- Re: My solution:Variable IN ... Ang�l Stewart
- RE: My solution:Variable IN ... Chris Evans
- RE: My solution:Variable IN ... Sean Daniels
- RE: Variable IN a list? How ... Duane Boudreau
- RE: Variable IN a list? How ... Philip Arnold - ASP
- RE: Variable IN a list? How ... Duane Boudreau
- Re: Variable IN a list? How ... Angel Stewart
- RE: Variable IN a list? How ... David Gassner
- Re: Variable IN a list? How to check? Deanna L. Schneider
- RE: CFLOCK and Client Variables mherbene
- RE: CFLOCK and Client Variables Cameron Childress
- RE: CFLOCK and Client Variables Dave Watts

