An example of making export sub-folders based on image metadata. In this workflow you will end up with the following sub-folders, depending on there being images with all the different rating:
Rating - 0
Rating - 1
Rating - 2
Rating - 3
etc.
With the exported files automatically being exported into the appropriate folder.
Note - if you are using a Source Node set to Tree Structure, this sub-folder structure will be created in each of the folders corresponding to the tree structure - it's usually best to use Tree Structure or create your own sub-folders.
The workflow from this screengrab is available in the workflows and scripts forum.