Hi,
I have a Get Metatdata task and need to check if there are any files returned before moving on to next step.
I have an IF condition which triggers another pipeline with a for each in (as I can't have For Each in an IF Condition).

As a test with a int variable set as 1 or 0 etc the IF Condition works OK but if I can't workout now how to get a simple count of the output files i.e. filecount > 0.
I have tried this from researching on the net but doesn't seem to work for me.
@if(empty(activity('GetFileNames').output.childItems),equals(2,1),greater(length(activity('GetFileNames').output.childItems),100))
This is Get Metadata output when there are files

This is output when there are no files

surely must be an easy built in way to do this...