Bit masking in LS?

Greetings… It’s been a long time (not long enough!) since I’ve had to do bit masking. I’m scheduling agents with LotusScript code and the AssistInfo data type has a Long value that represents any combination of 5 values - 1, 2, 4, 8, 16. I, of course, can set the value easily but parsing the return eludes me. Does anyone know of LS code that can determine which values are included in the numeric? Thanks.

Don Lawton

Subject: Bit masking in LS?

And and Or are bitwise operators (and there are others listed in the help).

Subject: RE: Bit masking in LS?

Outstanding! Works like a charm. Thanks Andre.

-Don