# Node for convert pulse to bool

**URL:** https://forum.xod.io/t/node-for-convert-pulse-to-bool/6774
**Category:** Uncategorized
**Created:** [January 27, 2024, 3:12pm UTC](https://forum.xod.io/t/node-for-convert-pulse-to-bool/6774 "2024-01-27T15:12:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![trom-24](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@trom-24](https://forum.xod.io/u/trom-24)
#### Post date: [January 27, 2024, 3:12pm UTC](https://forum.xod.io/t/node-for-convert-pulse-to-bool/6774/1 "2024-01-27T15:12:32Z")

</div>

Hello,  
It would by nice have a node that convert pulse to bool.  
What do you think?

---

<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: [January 28, 2024, 1:15am UTC](https://forum.xod.io/t/node-for-convert-pulse-to-bool/6774/2 "2024-01-28T01:15:50Z")

</div>

It doesn’t logically make sense to convert a pulse to a bool, so there is no node for it. Pulse is a one-time event. Bool is a state that is maintained over time.

Depending on what you are actually trying to do, there are probably options. For example, you could send the pulse to a flip-flop node, which becomes true on pulse. The flip-flop has memory for maintaining the state over time.

It completely depends on your program requirements what happens next. If the pulse line is connected to flip-flop-TGL, the flip-flop will toggle between true/false with each pulse. If that is not what you want, the pulse signal can go to flip-flop-SET to turn on the flip-flop with each pulse (even if it is already turned on). Unless you want this to never reset, you will need some way for your program to pulse the flip-flop-RST pin to turn it back off.

---

<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: [February 27, 2024, 1:16am UTC](https://forum.xod.io/t/node-for-convert-pulse-to-bool/6774/3 "2024-02-27T01:16:06Z")

</div>

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