How would you handle doing bitmask compares?

I want to flag ACL values, which are really a bit mask. Trying to
think how to do this in DirXML Script.

I need to catch objects with W, or S to [All Attributes] and SRD to to
[Entry Rights]. And that requirement may change, so I would love to GCV
the value of the test...