Open topic with navigation

# BITANDHEX

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

## Format

    FieldText=BITANDHEX{yourHexadecimalString}:yourBitFields

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

## Example

    FieldText=BITANDHEX{7F}:BitField

The binary representation of the hexadecimal value `7F` is compared with the binary representations of the hexadecimal values that `BitField` fields in Distributed Action Handler contain. Only documents whose `BitField` values result in a non-zero value when they are compared to the binary representation of `7F` are returned.

If the `BitField`, for example, contains the hexadecimal value C0, the document returns, while a document whose `BitField` contains the hexadecimal value 80 does not return.

Field value comparison:

Hex | Binary
--- | ---
`7F` | `0111 1111`
`C0` | `1100 0000`
| `0100 0000`. This evaluates to `true`.

Hex | Binary
--- | ---
`7F` | `0111 1111`
`80` | `1000 0000`
| `0000 0000`. This evaluates to `false`.

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus 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 swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm