beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

IfTrueThen Op

Ops.Boolean.IfTrueThen


IfTrueThen
Namespace: Ops.Boolean

Op author: pandur

There is a newer version of this op!


This version will not receive any updates. It is recommended to use a newer version.

Current version: Ops.Boolean.IfTrueThen_v2

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


summary (oneliner)

Can be used as a switch. If the input Boolean is true/ 1 the output port Then will be triggered. If Boolean is false / 0 the output port Else will be triggered.

You can also input non-boolean values, 0, 0.0, '' (empty string) will all evaluate to false. On the contrary 1.234, '5' or 'lalala' will evaluate to true.

You can use it in two ways: If Exe is connected Then / Else will be triggered every time Exe is triggered. If Exe is not connection Then / Else will be triggered every time Boolean changes. This way you can convert a bool to a trigger (function).



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

exe (Trigger)

Executes the op


boolean (boolean /Number)

The boolean value to check for truthyness


Outputs

then (Trigger)

Triggers when the input value is true


else (Trigger)

Triggers when the input value is false


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

ifTrueThen example

Open Example In Editor


Youtube Video Tutorial

Patches using IfTrueThen