Performers - How to allocate up to 10 cases per users

Hi, I am trying to create an expression to allocate up to 10 cases to a user. If all the users have 10 or more cases already allocated to them then I would like to keep the case allocated to Everyone. Would you mind helping me with an expression that I could use in the Performers segment? Thank you

Comments (1)


Dear SW,

Please try to apply some logic as the below:

if (userCount<10) thisUserId; else allUsers;

Best regards.