OPA Word Rules – Level Up!
As the summer lethargy begins to bite (at least if you are in the Northern Hemisphere) I find my colleagues are missing from their desk – vacations long planned are finally here! It is with this in mind that today I am sharing a lighthearted post about Word rule levels. But there is a nice payoff in the end of the post, which some of you will might already know but it might be useful for some, occasionally.
Let’s look at the following document snippet and ask ourselves a question (this screenshot comes from the RetailDiscounts example project).
The picture above shows a fairly typical nested level structure, which improves clarity and helps both the rule author and the rule validator / subject matter expert because it makes the goal and conditions clear. And we can see in this case, there are 2 levels used (level one is yellow, level two is salmon pink).
How low can you go?
The question is, how many levels can you have? Note, that this question is not “how many levels should you have?” which is altogether more nuanced and more in the domain of best practices – and if you are in doubt about that, I strongly suggest you read Jasmine’s famous PDF here.
So, how many can you have? Well, let’s look a the Word Ribbon – there is a drop-down to help us:
So that’s the answer, right? Five levels, each with their own color. Or is it?
It’s not Summer, it’s Easter! OPA Word Rules – Level Up!
Some might qualify this as an Easter Egg in computer geek-vocabulary. It’s an unexpected feature – but there are actually SIX levels. Not five.
Take a look at the following screenshot, notice the styles have been displayed for clarity.
In the (albeit very infrequent) case of needing a sixth level, you can access it by pressing the Increase Indent button on the toolbar, while the cursor is on the fifth level (or you can press F12 on your keyboard).
Have a nice day!