(comparison):Compare global variable mygvar=1, (action):set mygvar to 0
That's it. That's all you need for a trigger.
No "Every tick", no extra Boolean comparison.
The next tick the variable will be different, and will not be run.
Remember events run in event sheet order, so remaining events, in the same tick, will also see that value as different.