# 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:** 1\
**Showing post:** 2

<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",…

---

_[View the full topic](https://discourse.nodered.org/t/how-to-do-number-higher-than-51-true-under-fals/38655)._
