I’m creating an app where you can group a list of users. The size of the groups is decided by the value of a drop-down, for instance, “4”. A group is a type with a list of users.
Occasionally the groups will become larger than 4 due to my program. I want the program to be able to recognize if the groups are larger than the drop-down value. Then create a new group and move the user to that group ( it is okay if there are fewer people in one group than selected due to uneven numbers). This action will ensure that no group is larger than the user selected in the drop-down value.
I appreciate help very much!