When connecting to an FTP server, it can be useful to execute distinct branches of a process, depending on how many files were fetched.
This can be done very simply, using an Execution Condition after the Get FTP action:
Explanation:
- Once the FtpGet Action is executed, its variable "FILE_NB" contains the number of files retrieved.
- The links to the next actions have an Execution Condition, based on this variable: ${FtpGet/FILE_NB}$
- Make sure that your Execution Condition refers to the appropriate variable path, matching your FtpGet action's name, for example ${MyFtpAction/FILE_NB}$