ToggleBool_v2 Op

ToggleBool

Toggle a boolean value by triggering


<p>Outputs a boolean value which changes state every time <code>Trigger</code> is executed, this will result in an output like <code>true</code> -&gt; <code>false</code> -&gt; <code>true</code> -&gt; <code>false</code> … </p>


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


INPUT PORTS


trigger (Trigger)

<p>When triggered the output value will be toggled from true to false and the other way around.</p>

reset (Trigger)

<p>Resets the <code>Result</code> to <code>false</code></p>

Default (Number:

<i>boolean</i>

)

OUTPUT PORTS


Next (Trigger)
result (

<i>boolean</i>

Number)

<p>Either <code>true</code> or <code>false</code></p>


Patches using ToggleBool_v2

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Boolean.ToggleBooluser avatarpandur - 2022-12-01 09:40
bugfixoutput default value on patch loaduser avatarpandur - 2022-12-14 17:11
improvementAdd output trigger which is triggered after any input was triggereduser avatarpandur - 2024-07-23 10:53
bugfixfixed bug when default value true needed two trigger to become falseuser avatartobyk - 2024-08-12 17:44