In case, no file to load

Hi,

Is there any way to just bypass the routine when there is no file to load in automation?
I am doing ‘Run program’ for unzip and locating files to another folder.

Thank you.

Yes, you can use the conditional branching arranged with derived tables. See this tutorial chapter about conditional branching: Conditional workflows.

The example below creates a file, which name is specified by a parameter, if it doesn’t exist. If the file exists, the project deletes it. Press “Reload and run” several times to see the two conditional branches toggle.

file-exists.morph (4.3 KB)

If you need to perform on condition a routine larger than just a few sequential actions, then the routine should be put in a separate module, and called from a conditionally derived table.

To learn more about EasyMorph visit easymorph.com.