# 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 Content 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 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm