I have a string variable that I build out with a list of email addresses.
For example:
UserList - abc@domain.com;def@domain.com;ghi@domain.com
I am tring to use a condition to see if there is a specific string in that variable.
For example, I want to check if def is already in there.
If not, then add def@domain.com to the variable.
if it is there already, then nothing.
I setup a condition like this below, but it constantly adds the address, when it should not.
I am expecting it to find 'def' inside the UserList variable that has the above addresses.
It is not though.
The contains is this:
contains(variables('UserList'),'def')

Report
All responses (
Answers (