Sure.  O and 1 are boolean values, but 3 ain't.
What is it you want to check?  Whether a UserID is provided?
-David

On Wednesday, May 23, 2001 11:56 PM, Paul Smith [SMTP:[EMAIL PROTECTED]] 
wrote:
> Is it expected behavior that the error below DOES NOT occur when
> REQUEST.GetClientData.UserID=1 but DOES occur when
> REQUEST.GetClientData.UserID=3 ? CFAS 4.5.1
>
> I cannot reproduce the error from my workstation.  UserID=3 at his
> workstation can repeat the error at will.
>
> Would it be better to use the YesNoFormat() function on the first boolean?
>
> best, paul
>
> An error occurred while evaluating the expression:
> REQUEST.GetClientData.UserID AND
> BitAnd(REQUEST.GetClientData.Permissions,VARIABLES.NeededPermission)
> Error near line 31, column 35.
> The short-circuit AND operator requires Boolean operands. Cannot convert
> the left operand to a Boolean value.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to