A screenshot showing a simple setup like this is shown below. Note the use of Dynamic Variable Input nodes for performance sake.
A screenshot showing a simple setup like this is shown below. Note the use of Dynamic Variable Input nodes for performance sake.