I am trying to check if the file I pulled from slack has already been uploaded by comparing the names in an If statement. I first searched Google Drive for the file name using the search function and then looped through each file pulled to see if they both had the same name. If they do I don’t want to upload them. If they don’t, then I want to upload the new file. The issue is that it keeps uploading each video file regardless of if its already in the folder.
It will probably help some to get rid of the “Loop over Items” I don’t think you need it. You can just let the whole list of items flow through each step and n8n will do the looping for you.
I think also that the “If” node checks whether $json.name differs from the name of the current loop item, If the names are different (indicating that the file does not exist in Drive), the workflow follows the top path to upload the file!