Lol, should have thought of that, I was just thinking there was a clever
solution :)

On 17/11/03 12:20 pm, "Pascal Peters" <[EMAIL PROTECTED]> wrote:

> if(type IS request.AUTH_ACL){
> result = u_access[j][key] OR u_access[j]['auth_mod'] OR is_admin;
> }
> else if(type IS request.AUTH_MOD){
> result = result OR u_access[j]['auth_mod'] OR is_admin;
> }
> else if(type IS request.AUTH_ADMIN){
> result = result OR is_admin;
> }
> -----Original Message-----
> From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
> Sent: maandag 17 november 2003 13:07
> To: CF-Talk
> Subject: Re: Very vague error message
>
> Ok, tracked it down to the switch statement:
>
>             switch(type)
>             {
>                 case request.AUTH_ACL:
>                     result = u_access[j][key];
>
>                 case request.AUTH_MOD:
>                     result = result OR u_access[j]['auth_mod'];
>
>                 case request.AUTH_ADMIN:
>                     result = result OR is_admin;
>                     break;
>             }
>
> On reading the cf reference I see that in a switch statement:
> �Each constant value must be a constant (that is, not a variable, a
> function, or other _expression_).�
>
> As you can see each of my case�s is a variable which is the problem... Is
> there any way of using the variable but not getting the error?
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to