As an example:
{
IF{MERGEFIELD LL}= "1" "→{MERGEFIELD DocName}→↵
→→" \* Charformat}
with
I as a
highlight, would return DocName in plain text on a green highlighted background. Similarly:
{
IF{MERGEFIELD LL}= "1" "→
{MERGEFIELD DocName}→↵
→→" \* Charformat}
with
I as a
highlight, would return DocName in red text on a yellow highlighted background.
See, for example the .docx attachment in:
https://www.msofficeforums.com/word-...html#post47254. Although the example there uses a formfield, the principle is the same.