TriggerCounter Op

TriggerCounter

Counts how often the port was triggered


<p>Useful for e.g. for debugging when you need to know how often <code>Execute</code> has been triggered, or if it was triggered at all.</p>


Full Name
  • Ops.Trigger.TriggerCounter
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


Example Patch Click Counter

Left click to increase counter, right click to reset

Counts the clicks using the TriggerCounter-op. A simple modulo op loops the counter.

Open In Editor

INPUT PORTS


exe (Trigger)

<p>Every time <code>Execute</code> is triggered, the output port <code>Times Triggered</code> will increment. </p>

reset (Trigger)

<p>Resets the counter</p>

OUTPUT PORTS


trigger (Trigger)

<p>Triggers every time <code>Execute</code> is triggered</p>

timesTriggered (Number)

<p>The number of times the input port <code>Execute</code> has been triggered </p>


Patches using TriggerCounter

  • Examples
  • Public
  • My Patches

Changelog


add current count in extended titleuser avatarstephan - 2022-02-03 12:29