I have a file system that contains a variable number of folders
These folders may or may not contain a file destined for further processing
There are certain folders I wish to exclude from processing
The list of excluded folders is comma delimited variable
The number of excluded folders contained in the delimited variable may change.
For example, currently the delimited variable is "processed,excluded,unknown"
At a later date, the delimited variable may look like "processed,excluded,unknown,download,"
I found this link "Skipping Items In A Foreach Loop" which works as long as the excluded folders are hard-coded https://www.timmitchell.net/post/2009/09/16/skipping-items-in-a-foreach-loop/
For example, the precedence constraint is currently hard-coded as this: FINDSTRING( @[User::FullFileName], "unknown",1) == 0
The question I have are these: 1) The optimal way to split a delimited string into the discrete values 2) The optimal way to evaluate the foreach variable (in my example, called FullFileName) against the list of excluded folders