IfTrueThen_v2 Op
Switch, trigger one or the other trigger port based on the input value
Summary (oneliner)
<p>Can be used as a switch. If the input <code>Boolean</code> is <code>true</code>/ <code>1</code> the output port <code>Then</code> will be triggered. If <code>Boolean</code> is <code>false</code> / <code>0</code> the output port <code>Else</code> will be triggered. </p> <p>You can also input non-boolean values, <code>0</code>, <code>0.0</code>, <code>''</code> (empty string) will all evaluate to <code>false</code>. On the contrary <code>1.234</code>, '5' or 'lalala' will evaluate to <code>true</code>.</p> <p>You can use it in two ways: If <code>Exe</code> is connected <code>Then</code> / <code>Else</code> will be triggered every time <code>Exe</code> is triggered. If <code>Exe</code> is not connection <code>Then</code> / <code>Else</code> will be triggered every time <code>Boolean</code> changes. This way you can convert a bool to a trigger (function).</p>
- Ops.Boolean.IfTrueThen_v2
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
INPUT PORTS
<i>boolean</i>
)