swap Reference

Select outlet based on input matching

swap

Arguments

in2 [number]

Optional

Sets value for left outlet.

Inlets

in1 [number]

Sets value for right outlet, causes output.

in2 [number]

Sets value for left outlet.

Outlets

out1 [number]

Value from the right inlet.

out2 [number]

Value from the left inlet.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

in1 [number]

Sets value for right outlet, causes output.

in2 [number]

Sets value for left outlet.

See Also

Name Description
join Combine items into a list
pack combine numbers into a list
prepend Return a new list where b is prepended to a
unpack separate list values into numbers
list.swap Swap two list indexes