I've looked at what you are attempting to do and it should work but... why not just create two separate tasks?
One for exporting Approved files and one for all the others and set the naming in the task.
Yes I have done it. But as temprorary choise.
This customer want to have only one option in order to avoid the possible mistake.