Haven't tested it, but I think this captures the logic you're looking for.
↧
Haven't tested it, but I think this captures the logic you're looking for.