# Support logical operators: OR / XOR / AND (AER-6074)

**URL:** <https://discuss.aerospike.com/t/support-logical-operators-or-xor-and-aer-6074/349>\
**Category:** Delivered Requests\
**Created:** [August 31, 2014, 2:45am UTC](https://discuss.aerospike.com/t/support-logical-operators-or-xor-and-aer-6074/349 "2014-08-31T02:45:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanson](https://avatars.discourse-cdn.com/v4/letter/h/9e8a1a/32.png) [@Hanson](https://discuss.aerospike.com/u/Hanson)\
**Post date:** [August 31, 2014, 2:45am UTC](https://discuss.aerospike.com/t/support-logical-operators-or-xor-and-aer-6074/349/1 "2014-08-31T02:45:38Z")

</div>

Currently the C client API aerospike\_key\_operate() can support Increment an Integer Bin: [http://www.aerospike.com/apidocs/c/d1/d47/structas\_\_operations.html#aaf2863985d2521b94f699ed6dec94403](http://www.aerospike.com/apidocs/c/d1/d47/structas__operations.html#aaf2863985d2521b94f699ed6dec94403) with operator AS\_OPERATOR\_INCR.

We have Use Case that needs to apply logical operations on an Integer Bin when write existing records with new Bins. Expect Aerospike to support logical operators:

- AS\_OPERATOR\_OR
- AS\_OPERATOR\_XOR
- AS\_OPERATOR\_AND

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [August 20, 2019, 12:27am UTC](https://discuss.aerospike.com/t/support-logical-operators-or-xor-and-aer-6074/349/2 "2019-08-20T00:27:51Z")

</div>

[Aerospike 4.6.0.2](https://www.aerospike.com/download/server/notes.html#4.6.0.2) add support for bit-wise operations to the Bytes data type.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [February 20, 2020, 6:24pm UTC](https://discuss.aerospike.com/t/support-logical-operators-or-xor-and-aer-6074/349/3 "2020-02-20T18:24:57Z")

</div>

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.
