# Bit handling in JavaScript

**URL:** <https://discourse.nodered.org/t/bit-handling-in-javascript/67271>\
**Category:** General\
**Created:** [2 September 2022 21:37 UTC](https://discourse.nodered.org/t/bit-handling-in-javascript/67271 "2022-09-02T21:37:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iiot2k](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Post date:** [2 September 2022 21:37 UTC](https://discourse.nodered.org/t/bit-handling-in-javascript/67271/1 "2022-09-02T21:37:57Z")

</div>

Thank you @Colin,  
JavaScript is a very deep well. You learn something new every time. Not easy for C/C++ people. I'm going to switch from UINT32 datatype to Array of Boolean in my redPlc nodes.

> [@Bit Strip from Int](https://discourse.nodered.org/t/bit-strip-from-int/67221/6):
>
> Understand it is not java script. More of what I have worked with before to show and example of logical data flow. Need a 1 output when it = 1, 2, 4 or 8 and a 0 when it does not. That should create and exclusive condition for each number.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 November 2022 21:38 UTC](https://discourse.nodered.org/t/bit-handling-in-javascript/67271/2 "2022-11-01T21:38:36Z")

</div>

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