Hi all,
I am new to Azure and I am testing on data factory.
I have a container which stored three CSV files. I would like to build a pipeline that copy the files to different output container base on the filename.

I added a Get Metadata activity and connect it to a ForEach activity
In the ForEach activity, I first set the filename to a variable and pass the variable to if Condition

The if Condition test on the below condition:
@startswith(variables('filename'), 'emp')
And the true/false activity are setting another variable which display the target copy location

I ran a debug and found that the three output are all "/dep/department.csv" while I am expecting "/emp/emp_1.csv", "/emp/emp_2.csv", "/dep/department.csv"

Please help me out, thank you in advance.