# Sequence Check of Booleans

**URL:** <https://discourse.nodered.org/t/sequence-check-of-booleans/75688>\
**Category:** General\
**Tags:** function-node\
**Created:** [24 February 2023 13:01 UTC](https://discourse.nodered.org/t/sequence-check-of-booleans/75688 "2023-02-24T13:01:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 February 2023 14:07 UTC](https://discourse.nodered.org/t/sequence-check-of-booleans/75688/3 "2023-02-24T14:07:01Z")

</div>

Existing solution on forum...

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b51c81367ac76c301299b4348951619e40be0243.gif) ](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b51c81367ac76c301299b4348951619e40be0243.gif)

> [@IF time interval between events, THEN](https://discourse.nodered.org/t/if-time-interval-between-events-then/63065/4):
>
> Here is a simple flow for detecting any sequence you wish (adjust it in the function node) [chrome\_DUEMJ7iNo8] Demo flow (use CTRL+I to import) [{"id":"9917b371dd14555c","type":"trigger","z":"b4132d0e1950d012","name":"timeout","op1":"reset","op2":"reset","op1type":"str","op2type":"str","duration":"2","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1580,"y":80,"wires":[["b4f1358385ad8b13"]]},{"id":"6f86f87ba4e65d92","type":"inject","z…

---

_[View the full topic](https://discourse.nodered.org/t/sequence-check-of-booleans/75688)._
