Multiple Conditions for Flow Decision activity

I need to check for multiple conditions in flow decision activity.

  1. Assigning Month name to a string variable

  2. Checking for multiple condition in flow decision activity

As flow decision only accepts Boolean data type i am not able to convert string as Boolean using convert method

Criteria is if month is Jan or Apr or July or October true branch should execute else false branch

Please help me with this

You have to write the condition in the below format

if((QuarterMonth=“January”) or (QuarterMonth=“April”) or (QuarterMonth=“July”) or (QuarterMonth=“October”))

and it will work fine and you don’t need to convert it to boolean explicitly

1 Like

Thanks @hafiz.ahsan I tried this earlier but i am getting the below error

((QuarterMonth=“January”) or (QuarterMonth=“April”) or (QuarterMonth=“July”) or (QuarterMonth=“October”))

without use if

Thanks @hafiz.ahsan @Yazan_Ghazal it worked

You don’t have to write if in the If activity, you only have to add remaining code

1 Like

A slightly simpler format…


1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.