Having issues with ITERATE and ITERATE TABLE

Add 12 Monthly Folders to an Existing Folder Using Iterate - NG.morph (27.5 KB)
Add 12 Monthly Folders to an Existing Folder Using Iterate Table - OK.morph (27.2 KB)
The two attached projects are similar. One works and the other does not.

This project is designed to ADD 12 sub folders (if they do not already exist) into a Main Folder. In this case the main folder name is Test adding 12 month project. Then it will add more sub folders with in the month name folder plus 1 empty excel file. I first tried it with iterate and in the called module input. That is the project marked NG. It does not add anything. Then I switched to Iterate Table. That does work. On purpose, I have one partially set up month folder. The project should detect this and complete the required additions. Two modules are used. One adds the month and all the sub folders. The other completes the missing folders and files within the month folder.
I do not understand why the normal iterate is not working. I expected the table containing iterate would pass all the rows to the called module and set the module parameters. I cannot tell what it is really doing. Maybe someone can help me understand it better.

Here is how it is supposed to look.


Below is a screen of the project after the process is executed.

Hi,
The difference between the "Iterate" and "Iterate table" actions is that Iterate only passes parameters to the specified module, Where as the Iterate table action passes the table of data as well as optionally parameters.

The reason your "NG" example isn't working therefore is because the "Add 1 Monthly Folder" module starts with an Input action, but is being called by the Iterate action which doesn't pass a table of data, only parameters. So the Input action receives no data, and thus the following skip actions set to if the table is empty is always triggered.

Add 12 Monthly Folders to an Existing Folder Using Iterate - NG.morph (27.2 KB)
I've attached your NG morph (be aware I change some of the parameters to paths that would work on my PC) with some changes to the start of the "Add 1 Monthly Folder" module. Instead of using the Input action, it uses the Sequence action to generate a single row, adds the passed month name as an the "Alpha Month" from the passed parameter. I also took out the skip actions which were set to if the table was empty as this should never be the case and so they would do nothing.

Your other "OK" example using the Iterate table action is passing the table of data as well as parameters and so it is working as you expect.

I wouldn't say either of the above methods is better than the other. As is often the case in EasyMorph, there is more than one way to solve a problem.

Regards
Matt