Oooh..Contains..Hmm.
This one looks a bit simpler.
Would this cycle through the DeptID list and the Privileges list to do the
comparisons??

-Gel

----- Original Message -----
From: Lee Fuller <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 13, 2000 4:27 PM
Subject: RE: Variable IN a list? How to check?


> <cfif #deptid# contains #session.privileges#>
>
>
>
> Lee Fuller
> Chief Technical Officer
> PrimeDNA Corporation
>
> > -----Original Message-----
> > From: Angél Stewart [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 13, 2000 9:39 AM
> > To: [EMAIL PROTECTED]
> > Subject: Variable IN a list? How to check?
> >
> >
> > How would i write this correctly in CFML?
> >
> > <Cfif #Deptid# IN #session.privileges#>
> >
> > Of course I want to check if the list of values in DeptID are all
included
> > in the list of values in the session.privileges list of values.
> >
> > Sooo..
> >
> > deptid may be "11001, 12000,13000"
> > and session.privileges may be :
> > "ViewReports,AddUsers,AddGroups,11001,12000,13000,14000,18201"
> >
> > In this case, the DeptIDs are all found in the Priviliges list,
> > so the user
> > is authorised.
> >
> > Umm..is there a single tag to run this check?
> >
> > -Gel
> >
> >
> > ------------------------------------------------------------------
> > ------------
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > 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.
> >
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> 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.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to