The binary comparison operators are not case sensitive, so "high" EQ "High"
is true.  Though I would recommend using either "EQ" or "IS" (not both) for
consistency.

Cheers,
barneyb

> -----Original Message-----
> From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 01, 2004 12:27 PM
> To: CF-Talk
> Subject: Re: populating dropdowns
>
> First off...ditch the excessive use of #
> <CFIF #session.username# EQ #getuser.username# and
> getuser.priority is "high">
> should be
> <CFIF session.username EQ getuser.username AND
> getuser.priority is "high">
>
> The issue may be that getuser.priority is equal to "HIGH" or
> "High" and not "high" but I can't tell without seeing it for
> myself ;-) (same goes for username)
>
> you should really make this entire condition case insensitive like so:
> <CFIF UCase(session.username) EQ UCase(getuser.username) AND
> UCase(getuser.priority) is "HIGH">
>
> Hope that sheds some light
>
> Cheers
>
>
> Bryan Stevenson B.Comm.
> VP & Director of E-Commerce Development
> Electric Edge Systems Group Inc.
> t. 250.920.8830
> e. [EMAIL PROTECTED]
>
> ---------------------------------------------------------
> Macromedia Associate Partner
> www.macromedia.com
> ---------------------------------------------------------
> Vancouver Island ColdFusion Users Group
> Founder & Director
> www.cfug-vancouverisland.com
>   ----- Original Message -----
>   From: Robert Orlini
>   To: CF-Talk
>   Sent: Monday, March 01, 2004 12:14 PM
>   Subject: populating dropdowns
>
>
>   I'm trying to restrict an option on a dropdown from
> appearing based on the users priority. I have the code below
> which does not generate any errors but will not display the
> "Custom Message" option when the priority is the correct one.
> What am I missing here please?
>
>   <option>Select one of six messages from this list</option>
>   <option value="maintenance">System Down for Scheduled
> Maintenance</option>
>   <option value="circuitproblems">System Down/Internet
> Circuit Problems</option>
>   <CFIF #session.username# EQ #getuser.username# and
> getuser.priority is "high"><option value="custom">Custom
> Status Message</option></cfif>
>   </select>
>
>   Thx.
>
>   Roberto. O.
>   HWW
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to