It is currently not possible to combine if and on. Also, all if constructs of a queuing discipline and its classes are treated as part of a single filter.
Also, on can currently only be used to select classes, including class selection paths. When using drop, only if is available.