Oh whoops. Missed that part. In that case, hold down option and click on the + button to create a new condition.
From there, you should see an extra pop-up. Set that to "any of its sub-files". Underneath that, add your condition to match the extension. That will end up matching any folder that has a file/folder with that extension anywhere underneath it. You can then set it to move wherever.