# Special adjustable Timer On/Off

**URL:** <https://discourse.nodered.org/t/special-adjustable-timer-on-off/85069>\
**Category:** General\
**Created:** [31 January 2024 11:44 UTC](https://discourse.nodered.org/t/special-adjustable-timer-on-off/85069 "2024-01-31T11:44:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [31 January 2024 12:04 UTC](https://discourse.nodered.org/t/special-adjustable-timer-on-off/85069/3 "2024-01-31T12:04:35Z")

</div>

Welcome to the forum @Raspi133

When asking for help it pays to help the helpers to help you 😉

Try to provide as much information as possible and clearly define your question, as this removes the need for lots of back and forth messages.

For example

> [@Raspi133](#):
>
> So let's give you 3 examples:  
> Moving slider to 3 --\> 3 sec. Output True, 7 sec. Output false, repeat in loop  
> Moving slider to 10 --\> 10 sec. Output True, 0 sec. Output false, repeat in loop  
> Moving slider to 0 --\> 0 sec. Output True, 10 sec. Output false, repeat in loop
> 
> I found a working way with 2 trigger events when using the slider within 1 to 9 seconds. But when using 0 or 10 (the min and maximum of the slider) this is not working any more.  
> It should also work for 0 and 10 as the requested application sometimes requires continous ON or OFF without switching.

These 2 paragraphs are not very clear, does this describe it better ?

Moving slider to 3 --\> 3 sec. Output True, 7 sec. Output false , repeat in loop  
Moving slider to 5 --\> 5 sec. Output True, 5 sec. Output false , repeat in loop  
Moving slider to 10 --\> Continuous Output True  
Moving slider to 0 --\> Continuous Output False

Can you provide a copy of what you have tried so far, you can paste your flow here.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/special-adjustable-timer-on-off/85069)._
