Conditional

Comparing the first input to the second:

-Is Equal to
-Is Greater than
-Is Less than

Drag it onto “My Components” in Palette.
Conditional.tox (878 Bytes)

Very nice and super useful!

Small comment:
if the input values are equal, “is less than” evaluates to 1.

Cheers
Markus

I had one job! haha. Yeah, I’ll fix that.

Hey bLackburst,
This is pretty neat. Can you post the updated tox?

updated. sorry, completely forgot about it.

just opened it, it has an error in the logic node.

cheers

works fine for me, 099 23470

Just a heads up, for me there are ops in this container that always cook, total cook time of .02 to .05 ms.

An alternative if you’re comparing only a single channel is to use the Expression Chop, with an expression like this:

me.inputs[0][0] > me.inputs[1][0]

This is equivalent to your ‘greater than’ mode (for only one channel). Execution time is .006 ms on my machine, and with the new python optimizations in touch it stops cooking if the inputs aren’t cooking.

Updated to use expression CHOPs, getting .013ms

Guess this is the first public tox that has some of my input in it! Cheers! :sunglasses: :sunglasses: :sunglasses: