# A bug, or a misunderstanding on my end?

**URL:** <https://discourse.nodered.org/t/a-bug-or-a-misunderstanding-on-my-end/56744>\
**Category:** General\
**Created:** [16 January 2022 11:45 UTC](https://discourse.nodered.org/t/a-bug-or-a-misunderstanding-on-my-end/56744 "2022-01-16T11:45:22Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 January 2022 15:43 UTC](https://discourse.nodered.org/t/a-bug-or-a-misunderstanding-on-my-end/56744/9 "2022-01-16T15:43:12Z")

</div>

ALL seems very cluttered and unclean, why not use javascript or JSONata.

```auto
[{"id":"d25af463a7c58e7a","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true-true","payloadType":"str","x":140,"y":3280,"wires":[["5f4fb69f255a7afd"]]},{"id":"5f4fb69f255a7afd","type":"change","z":"c791cbc0.84f648","name":"Make boolean jsonata","rules":[{"t":"set","p":"payload","pt":"msg","to":"$not($contains($$.payload, \"false\"))","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":3320,"wires":[["f46e3f30e8f2459c"]]},{"id":"f46e3f30e8f2459c","type":"debug","z":"c791cbc0.84f648","name":"Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":680,"y":3300,"wires":[]},{"id":"a0200cdbd74d6e7f","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false-true","payloadType":"str","x":150,"y":3320,"wires":[["5f4fb69f255a7afd"]]},{"id":"cced1885.8c6288","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false-true-true","payloadType":"str","x":170,"y":3360,"wires":[["5f4fb69f255a7afd"]]},{"id":"dd806c66.44737","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true-true","payloadType":"str","x":140,"y":3400,"wires":[["e8eaa3be.7a6118"]]},{"id":"598f8474.2a84d4","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false-true","payloadType":"str","x":150,"y":3440,"wires":[["e8eaa3be.7a6118"]]},{"id":"bee70e3b.a04a2","type":"inject","z":"c791cbc0.84f648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false-true-true","payloadType":"str","x":170,"y":3480,"wires":[["e8eaa3be.7a6118"]]},{"id":"e8eaa3be.7a6118","type":"function","z":"c791cbc0.84f648","name":"make boolean Javascript","func":"msg.payload = !msg.payload.includes(\"false\")\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":430,"y":3420,"wires":[["f22f0989.030e4"]]},{"id":"f22f0989.030e4","type":"debug","z":"c791cbc0.84f648","name":"Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":660,"y":3420,"wires":[]}]

```

---

_[View the full topic](https://discourse.nodered.org/t/a-bug-or-a-misunderstanding-on-my-end/56744)._
