How to add more than one attribute in Value 2 of a Workflow

Hi,

I am trying to do a check in a compare string of a workflow I am building based on the image below, however, I want to have FT or CT in Value 2 but do not know the correct way to write this. Can anyone provide some assistance please.

HI @dcoleman ,

Can you try using “contains” and give a try? I never tried it. If not, you can have two compare string operators.

Hi , I think I tried contain as well and it didnt work, but to be sure, let me try it again. Thanks for the response

@JackSparrow it did not work, its not recognising if its FT or CT, I am wondering how we we can separate two values in value 2 with the logical operator OR concept. I was experimenting with it before and tried “FT” or “CT” in value 2 but that didnt work either

You can put multiple Compare String Operators to achieve this. First check for workerType Equals FT and if false have another Step to Compare String and check for workerType Equals CT.

It seems logical operators in the compare steps are planned to be supported but not sure if that enhancement is already available. Please refer the following for reference.

Hi @SanjeevIAM ok, yeah I now realise that conditional operators don’t work, thanks for the details. I can use another compare string but trying to see how I would do the condition for FT or CT as I need to check if either is true, and if false it would be CW or TPV hence why I was looking for some form of condition. I would need to work out how best to represent this with another compare string.

Hi @dcoleman,

Take a look at this solution by @iamnithesh. You can use a define variable step to add comma separated values and use them in a compare strings operator.

@jesvin90 Thanks much, this works perfectly.