How to assign a task to 3-4 users of different group?

I have a user input task , I want to assign task to 3-4 users dynamically using if else

for example:


local!myArray: {
{ name: "Aish", category: "A" },
{ name: "Jenny", category: "A" },


if local!flag is true, assign task to users in local!myArray ,

else assign task to a single user i.e loggedinuser()

Please help

  Discussion posts and replies are publicly visible