<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/[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.
>
------------------------------------------------------------------------------
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.