...
Let's suppose now that we have a SIL listener and we'll like to use that counter variable. You can simply access it in your listener like this:
Code Block | ||||
---|---|---|---|---|
| ||||
persistent number counter; persistent boolean flag = true; //initialization is ignored if the previous script was already executed! //............. /// use it in the listener like a normal variable: counter--; |
...