Switch Case with OR Condition

I have a condition where I need to Archive a file in these folders (depending on the Month the file was processed)
image

If the Month is Jan, Feb or March when the file got processed I need to move the file into Q1:

How do I add an OR in Switch case?
image

HI,

We cannot use any expression in Case field.
How about using the following Expression?

(intMonth -1 ) \ 3

1,2 or 3 will be 0
4,5 or 6 will be 1

image

Regards,

1 Like

Switch doesn’t work that way. Use the Else If activity instead.

Also, a better way to do the expression, instead of “intMonth = 1 or intMonth = 2 or intMonth = 3” just do…

{1,2,3}.Contains(intMonth)

1 Like

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