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 Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

