help microflow decision - deciding if only 1 user role is selected

1
i am following along with this learning path:  https://academy.mendix.com/link/modules/182/lectures/1398/2.3.1-Creating-Entities-and-Attributes and i am stuck on the decision when creating this microflow:    when i click on the decision i’m not sure what to put in the expression: 
asked
1 answers
2

The Count action will return an integer variable called NumberOfUserRoles, it will be e.g. 0, 1, 2, 5 etc.

The Decision needs to return a boolean (true or false)

So the expression you need to formulate has to return a true or a false, an comparison can do that for example:

  • $NumberOfUserRoles = 1
  • $NumberOfUserRoles > 0 and $NumberOfUserRoles < 2
  • 1 > 2
  • 2 < 1

These are just examples and the first one, might be answer you were looking for. Now the decision will have two outgoing paths (true or false)

answered