How do I determine the priority in which animation transitions happen?

Say I have 2 transitions from one state to 2 other states.
If both conditions on the transitions are true, then is there a way to set a priority on which transition I want to happen?

Played around with the animator and this functionality does exist.
You just have to click on a state in the animator, and arrange the transitions in the inspector in the order you want to prioritize them. The top most transition will have the highest priority.