# On Change to look for rising or falling boolean transition

**URL:** https://forums.losant.com/t/on-change-to-look-for-rising-or-falling-boolean-transition/2272
**Category:** Help
**Tags:** workflow
**Created:** [October 11, 2019, 5:47pm UTC](https://forums.losant.com/t/on-change-to-look-for-rising-or-falling-boolean-transition/2272 "2019-10-11T17:47:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![paul\_wareham](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@paul\_wareham](https://forums.losant.com/u/paul_wareham)
#### Post date: [October 11, 2019, 5:47pm UTC](https://forums.losant.com/t/on-change-to-look-for-rising-or-falling-boolean-transition/2272/1 "2019-10-11T17:47:19Z")

</div>

I am using the On Change node to detect a change in a boolean true/false. I am actually looking specifically for a change from false to true (and ignore true to false). For now I am using an On Change node looking for “Any Change” followed up on the True output by a Conditional node to check if the payload is now True.

This works but i was wondering if there is a way to reduce this down to one node (other than a function node)? If the On Change node has a “rising edge” and “falling edge” option that would be ideal - perhaps that a feature suggestion?

Thanks  
Paul

---

<div class="post-metadata">

### Author: ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)
#### Post date: [October 11, 2019, 6:28pm UTC](https://forums.losant.com/t/on-change-to-look-for-rising-or-falling-boolean-transition/2272/2 "2019-10-11T18:28:33Z")

</div>

Hi @paul_wareham,

I think a [Latch Node](https://docs.losant.com/workflows/logic/latch/) would be the best option for the use case you described. I set up an example below:

 ![03%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/18a45994d571ca8d702b6b67dd5372301dd7d3e2.png)

This workflow has two Virtual Buttons containing a true and false (as they are labeled). The configuration of the Latch Node below will route so the Latch takes the `true` path only when the value changes from `false` to `true`.

 ![53%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/7/71e7f263750523e1b332167c68e2364e5dd10bef.png)

Per the documentation:

> When the latch expression evaluates to true AND the node is not in the latched state, the `true` route on the right out of the node is taken.

So, if the boolean value is `true`, it will take the right path only if the reset expression (the boolean is false) has occurred prior.

When the boolean is `true`:

 ![36%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/4/4f10cd995de2d61cc7081666e33c0c3c82f5c1f5.png)

When the boolean is `false`:

 ![20%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/b/b60123d0fe76a79ed8c8a9ddde8cef7ca295a96d.png)

When the boolean is `true` after being `false`:

 ![00%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/a/a5048609fe66146d9f0f38ead8b4df382093678a.png)

Thanks so much!  
Julia
