Label parameter matrix

Both the Hide If and Show If macros for the Visibility feature have the Label parameter.

The behavior of the “Label” parameter varies, depending on the value of the “Match Using” parameter ('all' vs ‘any’). 

For example, if the value of the “Label” parameter is “a, b” and the “Match Using” is set as “any,” then the condition is TRUE for pages with the label “a” OR label “b.” If “Match Using” is set as  “all,” then the condition is TRUE for pages with the label “a” AND label “b.”

The following is a complete matrix of behaviors when using the Label parameter. This may help users who prefer using labels with a dash "-" prefix (e.g., "-review") and how the Label parameter behaves when it encounters such labels.

Labels in macro parameter

Page labels

Show If

Hide If

Match Using: Any

a, b, c

a, b, c, d

true

true

Should match a or b or c

a, b

a, b, c, d

true

true

Should match a or b

a

a, b, c, d

true

true

Should match "a"

b, e

a, b, c, d

true

true

Should match "b"

-

-

true

true

Should match "-"

page-

page-

true

true

Should match "page-"

-e, -f

a, b, c, d

true

true

Should match since there are no labels "e", "f"

-

--

false

false

Should not match since there is no label “-”