Patches

Loop Filter

Loop Filter

Filters a loop to a subset of its values using a loop of booleans.

Example A: Filter to a subset of a loop.

Input
apple
carrot
orange
Include
 
Output
apple
orange

Example B: Repeat filtered values by using a loop of indices.

Input
apple
carrot
orange
Include
0
3
1
Output
carrot
carrot
carrot
orange

Right-click the patch to change the expected type of the Input loop.

Use Loop Builder to make a boolean or number loop.

Loop Filter

  • Input
  • Include
  •  

Input

A loop of values.

Include

A loop of booleans (or indices) that decides which values in the Input loop to filter.

Output

A loop of the selected values.