A Better Solution for "How to group bundles in X amount of bundles"

Set Up

How to set up the Repeater module to do this?

You can directly calculate the number of chunks needed in the Repeater module. The trick is the “Step” field, to increment the i variable based on the output array (single chunk) size.

In this example, we are using a chunk size of 4.

  1. Since the slice function begins from index 0 (first item of the array), the Initial value must be set to 0.

  2. To calculate how many Repeats (output operations) we need to chunk them into the array size limit, we use the length function to get the total amount of items in the original array, and divide by the chunk size.

  3. Then, the Step field will simply be just the chunk size.

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

5 Likes