Filename to get the missing file

I am trying to get the missing filename from folder and all my files are stored in array FilePaths Can anyone help me with this?
Below are the ss
image

@Seema_Jethe

ToArray replace with .ToArray.Count

Which will get you a count,

Now use IF activity as IntVariable = 3 then you have all the files
else some file is missing

Hope this will help you

Thanks

@Srini84 But if i want to know the name of file which is missing amongst the 3 files then in that case will it help?

@Seema_Jethe

You can take below as reference and change according to your requirement

image

Hope this will help you

Thanks

@Srini84 NewStrings variable is an array of strings?

@Seema_Jethe

Yes, that’s array of String which has PDF, CHEQUE

As you have 3 strings in array so If all three are captured then put condition as Array.Count = 3

If it is 3 then it will execute the the then part, or else it will execute else part and there you can put If condition and Array.Contains(“Your Value”) using this you can capture which element is missing

Declare a variable and then add to that which values are missing

Hope this will help you

Thanks

@Srini84 ok