# How to toggle bit

**URL:** <https://forum.inductiveautomation.com/t/how-to-toggle-bit/5458>\
**Category:** General Discussion\
**Created:** [November 21, 2012, 4:27am UTC](https://forum.inductiveautomation.com/t/how-to-toggle-bit/5458 "2012-11-21T04:27:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mubin](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mubin](https://forum.inductiveautomation.com/u/mubin)\
**Post date:** [November 21, 2012, 4:27am UTC](https://forum.inductiveautomation.com/t/how-to-toggle-bit/5458/1 "2012-11-21T04:27:51Z")

</div>

how to toggle a bit continuously for 1 sec in ignition and how to assign to tag?

can any one give me the reply.  
and give the code for this to write in client scripts.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 21, 2012, 10:57am UTC](https://forum.inductiveautomation.com/t/how-to-toggle-bit/5458/2 "2012-11-21T10:57:47Z")

</div>

Using a Timer Script to toggle a tag called ToggleTest:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f7d254d572efb81f7a1b8d7f909fe80ec2566825.png)
