Thanks Jim...
 
Sooo, I guess I have to do this by going through each of my roles and
doing cfifs?
 
Seems like I am "hardcoding" almost.
 
 
Candace K. Cottrell, Web Developer 
The Children's Medical Center 
One Children's Plaza 
Dayton, OH 45404 
937-641-4293 
http://www.childrensdayton.org
 
 
[EMAIL PROTECTED]

>>> [EMAIL PROTECTED] 6/30/2003 11:01:08 AM >>>
It's not illegal, but it won't work.

IsUserInRole() takes a role and returns a Boolean (true/false) - it
really
can't be used in a switch like that.  (The "value" attribute looks at
the
RETURN of "expression" - it doesn't act as input to it.)

Jim Davis



> -----Original Message-----
> From: Candace Cottrell [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 30, 2003 10:55 AM
> To: CF-Talk
> Subject: Cfswitch question
> 
> Is this illegal?
> 
> <Cfswitch expression="IsUserInRole()">
>      <CfCase value="Admin">
>                  <h2>Administrator Functions: </h2>
>      </cfcase>
>       <CfCase value="Facilities">
>                   <h2>Facilities Functions: </h2>
>      </cfcase>
> 
>  </Cfswitch>
> 
> Candace K. Cottrell, Web Developer
> The Children's Medical Center
> One Children's Plaza
> Dayton, OH 45404
> 937-641-4293
> http://www.childrensdayton.org 
> 
> 
> [EMAIL PROTECTED] 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to