ToggleBool_v2 Op
Toggle a boolean value by triggering
Summary (oneliner)
<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> -> <code>false</code> -> <code>true</code> -> <code>false</code> … </p>
- Ops.Boolean.ToggleBool_v2
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch example - toggle bool
INPUT PORTS
<p>When triggered the output value will be toggled from true to false and the other way around.</p>
<p>Resets the <code>Result</code> to <code>false</code></p>
<i>boolean</i>
)OUTPUT PORTS
<i>boolean</i>
Number)<p>Either <code>true</code> or <code>false</code></p>
Patches using ToggleBool_v2
Changelog
cloned op from Ops.Boolean.ToggleBool | pandur - 2022-12-01 09:40 | |
bugfix | output default value on patch load | pandur - 2022-12-14 17:11 |
improvement | Add output trigger which is triggered after any input was triggered | pandur - 2024-07-23 10:53 |
bugfix | fixed bug when default value true needed two trigger to become false | tobyk - 2024-08-12 17:44 |