View Component 25.3
View Component Help

# 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 the 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 2025 Open Text
Version 25.3 | Last updated July 2025

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 MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery View Component 25.3

Topic Title: BITAND