» Conditions
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.



Patching pages


Basic usage

In the most simplest scenario you want to switch between two inputs according to the result of some boolean operation (0 and 1).

This is what the  Switch (Value Input) is for.

By default the Switch node has 2 inputs to switch between: in case of 0 Input 1 and in case of 1 Input 2.

More Inputs

The Switch node can accept any number of inputs to switch between by setting the Input Count via the Inspektor. The Switch input then takes an integer value ranging from 0 to Count-1 to switch between the inputs.

See also
  • If you want to apply a LERP (linear interpolation) between the inputs instead of switching between them have a look at  InputMorph (Value).
  • In order to switch Values according to a String, have a look at  Case (Value Input).

Alternatively to switching between multiple individual values you can use the GetSlice (Spreads) as shown to switch between the slices of a spread.

Boolean operations

Boolean operations

There is no special Boolean datatype in vvvv. Boolean values are simply represented by 0 (false, off) and 1 (true, on). Use the following nodes for basic boolean operations:

Relational operators

>, <, =,... return 0 or 1.

State conditions

There are some special nodes that return a Boolean according to a change in state.


See the helppatches of these nodes for details.

State Automatas

When patching anything that can be separated into a series of states and events that cause transition from one state to another you are likely looking for Automata (Animation). Also the Timerliner has an automata built in.

See also:

anonymous user login


~13h ago

joreg: We are complete: #NODE20 will feature 30 #vvvv workshops, from intro to masterclass, from user to developer: node20-workshops

~1d ago

joreg: Please help yourself to the latest #vvvv gamma 2020.2: vvvv-gamma-2020.2-release

~5d ago

nodeforum: E-mail invitations for NODE20’s Festival Hub have been sent out yesterday. In case of trouble let us know via help@nodeforum.org

~6d ago

david: @neuston: email is going out very soon!!!

~6d ago

neuston: @sunep Thx, but I have checked the spam folder but could not fine any

~6d ago

sunep: @neustron have you checked your spam folder? Mine went to spam.

~6d ago

neuston: I've not received any activation email for Talque, after purchased tickets of NODE20 last week. Is it normal? just want to confirm.

~6d ago

boplbopl: @tonfilm nice!

~6d ago

tonfilm: The first #vl #stride screenshots are here! vl.stride-earlyaccess-screenshots #visualprogramming #dotnet @stride3d #creativecoding #vvvv #gamedev