Recursing a directory

Hello all! Hoping that Hazel has the ability to do this:
I have a directory structure which is set up as follow:
studies->[random#sequence]->[scored]->[filename]
Here's what I want Hazel to do. I want it to go in to the studies directory. Then I want it to scan the directories. If there is a new directory, then I want it to go in to the directory (so now it's in the [random#sequence] directory. Once in there, it can either go in to one of 3 directories [john, sally, mary]. If john doesn't exist, then it looks for mary. If mary doesn't exist, then it looks for sally. So if one of those 3 exist, it now goes in to that directory [scored]. One in scored, there is one of 3 file names (similar to above, but not those same names). If that file name exists, I want it to copy that file to a different directory, which is named [random#sequence]->[scored]->[filename].
Is this level of complexity/logic something that Hazel could do? Thank you!!
I have a directory structure which is set up as follow:
studies->[random#sequence]->[scored]->[filename]
Here's what I want Hazel to do. I want it to go in to the studies directory. Then I want it to scan the directories. If there is a new directory, then I want it to go in to the directory (so now it's in the [random#sequence] directory. Once in there, it can either go in to one of 3 directories [john, sally, mary]. If john doesn't exist, then it looks for mary. If mary doesn't exist, then it looks for sally. So if one of those 3 exist, it now goes in to that directory [scored]. One in scored, there is one of 3 file names (similar to above, but not those same names). If that file name exists, I want it to copy that file to a different directory, which is named [random#sequence]->[scored]->[filename].
Is this level of complexity/logic something that Hazel could do? Thank you!!