@ben_3 you could take a look at this example:
If you want to show which rule is being used there is this example: