Choice Stage with Data Text not routing

I'm trying to design a choice stage with 5 Race Criteria to choose from (White, Asian, Hispanic, Black, Pacific Islander) where my Choice A is White and so on where my choice criteria is StartsWith("White", "White") this only works for Race White. If i enter any other race the result is still Choice A what am i missing?

View attachment 1548370772682.png
 

sivagelli

Well-Known Member
From the screenshot attached, the choice stage is working as expected.
The Choice stage checks the first condition and if the condition fails then only it will go to the other conditions. Here the first condition always returns 'True', so it will go with Choice A always.

If you would have used a Data item as first argument, then with different Race in data item, different Choices will be chosen.

Hope this helps!
 

bot1robot

Member
@immortalsolitude

Choice stage will select only one condition from the list of conditions provided.

So Choice stage would be more preferable in case of selecting one choice out of multiple choices.(Like radio button works)

If you want to do multiple selection among provided choices , you may either use data Item or collection and compare them with value received.

Hope this Clarifies .
 
Top