# Greater and less nodes

**URL:** <https://forum.xod.io/t/greater-and-less-nodes/1264>\
**Category:** Uncategorized\
**Created:** [October 23, 2018, 2:23pm UTC](https://forum.xod.io/t/greater-and-less-nodes/1264 "2018-10-23T14:23:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [October 23, 2018, 2:23pm UTC](https://forum.xod.io/t/greater-and-less-nodes/1264/1 "2018-10-23T14:23:01Z")

</div>

Hello, I can not compare with the first part of the block, and get the exit.  
The lower part works well, but the upper part does not compare.  
Is any node missing? the value is obtained from an analog pin

the values arrive and if the door is activated the bytes are only the purchase that does not work. 🤔

![equal](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/1450014f0c35668d708ef57480e478e4cd82349b.png)

---

<div class="post-metadata">

**Author:** ![dox](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/dox/32/424_2.png) [@dox](https://forum.xod.io/u/dox)\
**Post date:** [October 23, 2018, 4:09pm UTC](https://forum.xod.io/t/greater-and-less-nodes/1264/2 "2018-10-23T16:09:33Z")

</div>

You can use the watch-node to check the values from the different number pins. Analog read node gives values from 0 - 1. So if you want to compare values above 1 you have to map the source range (0 - 1) to the target range (e. g. 0 - 10, 0 - 1023, 50 - 80 etc.) with the map-range node. There is also a map-clip-range node clipping values below or above the selected range to the limited range.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [October 25, 2018, 4:09pm UTC](https://forum.xod.io/t/greater-and-less-nodes/1264/3 "2018-10-25T16:09:36Z")

</div>

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