Select ALL condition

Use scripting, where you can test if the number of selected items is the same as the number of items.

Edit: Answer is here: Select All / Select Nothing button - #2 by Leo