If there is more than 1 rules as shown in the figure.
How does it acts? which one gets priority?
You need to use the Priorities button (lower left). First rule that matches is applied.