Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagejava
titleA listener code
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--;

...