Possibility to add logical expression specifying allowed combinations of outgoing and ingoing conditions, similarly to #8 .