i use...

<cfif bitAnd(var,4) eq 4>

 since i hate to trust that 4 will be boolean ;0

</cfif>


On Mon, 07 Feb 2005 11:53:53 -0500, Claude Schneegans
<[EMAIL PROTECTED]> wrote:
> >>How can I tell if the "4" (third) bit is "on"?
> 
> Look at bitAnd() function:
> <CFIF bitAnd(authorization, 4)>
>    the guy is authorized
> <CFELSE>
>    kick him out
> </CFIF>
> 
> --
> _______________________________________
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193924
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to