Open topic with navigation

# 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`.

© 2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm