IDOL Category Component 12.12

# BITAND

The `BITAND` field specifier (case sensitive) allows you find documents with a field whose integer value does not result in 0 when a bit-wise `AND` operation is performed between this value and a specified integer value.

## Format

    FieldText=BITAND{yourInteger}:yourBitFields

`yourInteger` | An integer. A document returns only if one of `yourBitFields` contains a value that results in a non-zero value when a bit-wise `AND` operation is performed between this value and the specified integer.
`yourBitFields` | One or more fields. A document returns only if it contains one of these fields, and if this field contains an integer that results in a non-zero value when a bit-wise `AND` operation is performed between it and `yourInteger`. Separate multiple fields with colons (there must be no space before or after a colon).

## Example

    FieldText=BITAND{128}:BitField

The binary representation of the integer value 128 is compared with the binary representations of the integer values that `BitField` fields in IDOL Category Component contain. Only documents whose `BitField` values result in a non-zero value when they are compared to the binary representation of 128 are returned.

If the `BitField`, for example, contains the integer value 129, the document returns, while a document whose `BitField` contains the value 127 does not return.

Field value comparison:

Integer | Binary
--- | ---
`128` | `1000 0000`
`129` | `1000 0001`
| `1000 0000`. This evaluates to `true`.

Integer | Binary
--- | ---
`128` | `1000 0000`
`127` | `0111 1111`
| `0000 0000`. This evaluates to `false`.

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL IDOL Category Component 12.12

Topic Title: BITAND