Using a SharePoint list with a multichoice field, a user can select 1-11 teams. In my flow, I added an initialize variable (varAssignedTo) and set it to a string. Next, I added an Apply to each containing an Append to String Variable. This is working great.
Now I want to add an UPDATE ITEM action to update additional text fields used to indicate which teams have been assigned.
TeamA
TeamB
TeamC
TeamD
Using an UPDATE ITEM action, I want to select my TEAMB field, add an expression to look at my "varAssignedTo" and if it finds TEAMB in the string, set this field to YES.
I see in the expression builder there is an "if(expression, valueIfTrue, valueIfFalse)" however, being a rookie not sure how to write it out. something like, If(contains(variables('varAssignedTo'),'TeamB',YES,'')))