IfTrueThen_v2 Op

IfTrueThen

Switch, trigger one or the other trigger port based on the input value


<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>&#39;&#39;</code> (empty string) will all evaluate to <code>false</code>. On the contrary <code>1.234</code>, &#39;5&#39; or &#39;lalala&#39; 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>


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


Example Patch ifTrueThen example

Open In Editor

Youtube Video Tutorial

INPUT PORTS


exe (Trigger)
boolean (Number:

<i>boolean</i>

)

OUTPUT PORTS


then (Trigger)
else (Trigger)

Patches using IfTrueThen_v2

  • Examples
  • Public
  • My Patches

Changelog


Ops.User.pandur.Iftruethen2 renamed to Ops.Boolean.IfTrueThen_v2user avatarpandur - 2020-04-21 08:54