# \[NODE\] node-red-contrib-boolean-parser

**URL:** https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987
**Category:** Share Your Nodes
**Created:** [3 November 2022 00:05 UTC](https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987 "2022-11-03T00:05:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![SimonButtazzi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/simonbuttazzi/32/70122_2.png) [@SimonButtazzi](https://discourse.nodered.org/u/SimonButtazzi)
#### Post date: [3 November 2022 00:05 UTC](https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987/1 "2022-11-03T00:05:17Z")

</div>

Hi,

I just created my first node these days, want to share it. I would be happy to get some feedback and reviews.

> **[node-red-contrib-boolean-parser](https://flows.nodered.org/node/node-red-contrib-boolean-parser)**
>
> A Node-RED node to parse and convert several types of on/off, start/stop, true/false values.

Especially it would be nice to get hints, how to solve current issues of the [Scorecard](https://flows.nodered.org/node/node-red-contrib-boolean-parser/scorecard). As you can see, I have tried to solve this in package.json already.

Thanks Simon

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 November 2022 09:47 UTC](https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987/2 "2022-11-03T09:47:44Z")

</div>

Welcome to the forum @SimonButtazzi

I don't know why you get those issues with the scorecard, hopefully someone who knows about that will chip in.

You might like to change the heading on your README. 'Telegram bot nodes for Node-RED' does not seem appropriate.  
It might be worth providing an Invert option (unless it is there and I missed it). Often with, for example, GPIO outputs, 0 represents On rather than Off.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 November 2022 14:08 UTC](https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987/3 "2022-11-03T14:08:52Z")

</div>

The issue with the scorecard might be[this one](https://discourse.nodered.org/t/issues-with-scorecard-on-flows-nodered-org/68917/6).

---

<div class="post-metadata">

### Author: ![SimonButtazzi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/simonbuttazzi/32/70122_2.png) [@SimonButtazzi](https://discourse.nodered.org/u/SimonButtazzi)
#### Post date: [3 November 2022 15:13 UTC](https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987/4 "2022-11-03T15:13:34Z")

</div>

Hi Colin,  
thanks for the welcome.

> You might like to change the heading on your README. 'Telegram bot nodes for Node-RED' does not seem appropriate.

Oh awkward, or a compliment to show where examples/templates come from. THX.

> It might be worth providing an Invert option (unless it is there and I missed it). Often with, for example, GPIO outputs, 0 represents On rather than Off.

Yes, I'll take this on the feature list.

Simon

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 November 2022 16:12 UTC](https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987/5 "2022-11-03T16:12:40Z")

</div>

Though I can see this node could be useful, I generally just use a Change node configured like this, for example.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/547630254b27b7722029d0654ba9c7b235ac22ae.png)

It is one of the few occasions when I use JSONAta

---

<div class="post-metadata">

### Author: ![SimonButtazzi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/simonbuttazzi/32/70122_2.png) [@SimonButtazzi](https://discourse.nodered.org/u/SimonButtazzi)
#### Post date: [3 November 2022 17:17 UTC](https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987/6 "2022-11-03T17:17:38Z")

</div>

Yes, basically the node does a very simple thing. Ternary If (of course some comfort stuff around ...). Not worth writing a lot of code.

But it took me much time to find a bug in my flows last week, caused by malfunction of a manual conversion. Due to the highlevel display of node red and therefore intransparency (in my eyes) of such simple things, I had to find a handy, transparent, compact and robust solution for me.

And it was a nice finger work to get more into node-red.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 November 2022 17:19 UTC](https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987/7 "2022-11-03T17:19:13Z")

</div>

Yes, certainly, I was not suggesting it was a waste of time.

---

<div class="post-metadata">

### Author: ![SimonButtazzi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/simonbuttazzi/32/70122_2.png) [@SimonButtazzi](https://discourse.nodered.org/u/SimonButtazzi)
#### Post date: [11 November 2022 17:47 UTC](https://discourse.nodered.org/t/node-node-red-contrib-boolean-parser/69987/8 "2022-11-11T17:47:30Z")

</div>

> It might be worth providing an Invert option (unless it is there and I missed it). Often with, for example, GPIO outputs, 0 represents On rather than Off.

Here you go: Inverting inputs is available with v1.3.1 now.

Simon
