# Bit Toggles on Client Update

**URL:** <https://forum.inductiveautomation.com/t/bit-toggles-on-client-update/37865>\
**Category:** Ignition\
**Created:** [August 18, 2020, 3:37pm UTC](https://forum.inductiveautomation.com/t/bit-toggles-on-client-update/37865 "2020-08-18T15:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven.rehnborg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steven.rehnborg/32/4952_2.png) [@steven.rehnborg](https://forum.inductiveautomation.com/u/steven.rehnborg)\
**Post date:** [August 18, 2020, 3:37pm UTC](https://forum.inductiveautomation.com/t/bit-toggles-on-client-update/37865/1 "2020-08-18T15:37:00Z")

</div>

I am using a tag to monitor the hour of the day for calculations. For example, at 11:53 PM the hour of the day is 23. I run a script when the hour changes to perform some calculations and storage of data. At the end of the script, I set a bit for the PLC to reset a counter. The problem I am having is that it seems that the script must be running when I make an update on the clients or the bit is toggling because I see the PLC counter reset to 0 even though it is not the beginning of the hour. Is there a way to suppress the run of the script or the bit toggle during an update of the Client?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 18, 2020, 3:55pm UTC](https://forum.inductiveautomation.com/t/bit-toggles-on-client-update/37865/2 "2020-08-18T15:55:49Z")

</div>

If you are using a tag change event script try adding this to your if statement,

```auto
if currentValue.value == 23 and not initialChange:  
  your script
```

---

<div class="post-metadata">

**Author:** ![steven.rehnborg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steven.rehnborg/32/4952_2.png) [@steven.rehnborg](https://forum.inductiveautomation.com/u/steven.rehnborg)\
**Post date:** [August 18, 2020, 5:07pm UTC](https://forum.inductiveautomation.com/t/bit-toggles-on-client-update/37865/3 "2020-08-18T17:07:03Z")

</div>

> [@dkhayes117](#):
>
> if currentValue.value == 23 and not initialChange: your script

I appreciate your help! I should have known that. I've seen it before in the documentation, but haven't had an obvious need until now. I think it has solved the issue.
