Ability to assign transactions based on criteria

We have 4 properties and one bank account. This means all the transactions go through one account and get auto assigned to one property which I then have to reassign. It would be nice if there was a feature where you could say “If its coming from this merchant, assign it to property X” or “if there is a mortgage payment of $100, always assign it to Property Y”.