# How to do number higher than 51 true under fals

**URL:** <https://discourse.nodered.org/t/how-to-do-number-higher-than-51-true-under-fals/38655>\
**Category:** General\
**Created:** [6 January 2021 13:06 UTC](https://discourse.nodered.org/t/how-to-do-number-higher-than-51-true-under-fals/38655 "2021-01-06T13:06:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvt-events](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@bvt-events](https://discourse.nodered.org/u/bvt-events)\
**Post date:** [6 January 2021 13:06 UTC](https://discourse.nodered.org/t/how-to-do-number-higher-than-51-true-under-fals/38655/1 "2021-01-06T13:06:24Z")

</div>

a good day

could someone help me with the following.

I have a number between 0 and 100 that I receive but I want if the number is 51 or higher that true comes out of the flow, it is lower than fals. can someone give me a golden tip on how to get this done?

thank you in advance

---

<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:** [6 January 2021 13:13 UTC](https://discourse.nodered.org/t/how-to-do-number-higher-than-51-true-under-fals/38655/2 "2021-01-06T13:13:03Z")

</div>

There is an example here

> [@Switch SmartPlug according to Humidity](https://discourse.nodered.org/t/switch-smartplug-according-to-humidity/38481/4):
>
> A conditional in the change node should get you true/false output based on humdity value. This uses a JSONata expression, you could do similar in a function node e.g. [{"id":"c202f2f3.ee146","type":"inject","z":"8d22ae29.7df6d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"35","payloadType":"num","x":160,"y":2400,"wires":[["e55b031e.79888"]]},{"id":"1c9ac260.e6e08e","type":"inject","z":"8d22ae29.7df6d",…

---

<div class="post-metadata">

**Author:** ![bvt-events](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@bvt-events](https://discourse.nodered.org/u/bvt-events)\
**Post date:** [6 January 2021 13:32 UTC](https://discourse.nodered.org/t/how-to-do-number-higher-than-51-true-under-fals/38655/3 "2021-01-06T13:32:00Z")

</div>

Thank you very well

---

<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:** [7 March 2021 13:32 UTC](https://discourse.nodered.org/t/how-to-do-number-higher-than-51-true-under-fals/38655/4 "2021-03-07T13:32:04Z")

</div>

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