# If-else(boolean)

**URL:** <https://forum.xod.io/t/if-else-boolean/2152>\
**Category:** Uncategorized\
**Created:** [April 17, 2019, 5:19pm UTC](https://forum.xod.io/t/if-else-boolean/2152 "2019-04-17T17:19:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [April 17, 2019, 5:19pm UTC](https://forum.xod.io/t/if-else-boolean/2152/1 "2019-04-17T17:19:08Z")

</div>

Any chance this can be added to distribution? It doesn’t make much sense by itself, but if-else is used as building block for other nodes like select. My queue-buffer node doesn’t work with boolean values because this function doesn’t exist.

---

<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:** [April 17, 2019, 5:41pm UTC](https://forum.xod.io/t/if-else-boolean/2152/2 "2019-04-17T17:41:55Z")

</div>

I have one, because I needed it.  
in ` __lib__ /xod/core/` create a copy of `if-else(number)` and rename `if-else(boolean)`  
start xod, add an `if-else(boolean)` change pines number to boolean, save a project with any name, that will have modified and saved the node.

If in the future it is native, it will only overwrite the existing one

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/5/57a58bd7270a6fd5cfc557a4356afb04b7b85de8.png)

ps: if you create it in your `gweimer/util` library when you look for it in the selector it will also appear

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [April 18, 2019, 11:59am UTC](https://forum.xod.io/t/if-else-boolean/2152/3 "2019-04-18T11:59:27Z")

</div>

Well, we should make it generic. Issued [https://github.com/xodio/xod/issues/1764](https://github.com/xodio/xod/issues/1764) to keep the track
