teenageengineering / videolab

MIT License
737 stars 65 forks source link

New klak node If Then Else #45

Closed sdhuys closed 3 years ago

sdhuys commented 4 years ago

New Klak node with 3 Inlets (Input, Compare Value 1 and Compare Value 2) and two outlets (Then Event and Else Event). The Input value can be compared (greater than, less than or equal to) Compare Value 1, and a checkbox can be marked to enable a logic gate (option between AND or OR) to enable a second comparison with Compare Value 2 as well.

There is also a "Continuous Input" checkbox which, if enabled, blocks the re-invoking of the ThenEvent/ElseEvent after it has been invoked, until the ElseEvent/ThenEvent gets invoked. This is to prevent the continuous invoking of events when the input is coming in continuously, for example from a Knob Value.

finnTE commented 4 years ago

@MysticalMonkeys I will look into this as soon as I have some time. I usually do this kind of conditional using FloatMix node.