km81
(Km)
1
I need to check for multiple conditions in flow decision activity.
-
Assigning Month name to a string variable

-
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
hafiz.ahsan
(Hafiz Mohammad Ahsan)
2
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
km81
(Km)
3
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
km81
(Km)
5
hafiz.ahsan
(Hafiz Mohammad Ahsan)
6
You don’t have to write if in the If activity, you only have to add remaining code
1 Like
postwick
(Paul Ostwick)
7
A slightly simpler format…
{“January”,“April”,“July”,“October”}.Contains(QuarterMonth)
1 Like
system
(system)
Closed
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.