"Match using" parameter matrix

Both the Hide If and Show If macros for Visibility feature the "Match using" parameter. The following is a complete matrix of behaviors when using the parameter.



“All” match case, User A who is part of Group A views content on the page:

User

Group

Authentication type

Show if/Hide if macro visibility

Explanation

User

Group

Authentication type

Show if/Hide if macro visibility

Explanation

User A

Group A

none

The viewer matches User A and Group A. Authentication type is not specified.

User A

-

none

The viewer matches User A. Group and authentication is not specified.

-

Group A

none

The viewer matches Group A. User and authentication type is not specified.

-

-

authenticated

The viewer is authenticated. User and group are not specified.

-

-

anonymous

The viewer does not match the anonymous condition.

User A

Group A

anonymous

The viewer matches User A and Group A but is not anonymous.



“All” match case, a logged-out user views content on the page:

User

Group

Authentication type

Show if/Hide if macro visibility

Explanation

User

Group

Authentication type

Show if/Hide if macro visibility

Explanation

User A

Group A

none

The logged-out viewer does not match the User and Group. The authentication type is not specified.

User A

-

none

The logged-out viewer does not match the User condition. The group and authentication type are not specified.

-

Group A

none

The logged-out viewer does not match the group condition. The user and authentication type are not specified.

-

-

authenticated

The logged-out viewer does not match the authentication type. The user and group are not specified.

-

-

anonymous

The logged-out viewer matches the authentication type. The user and group are not specified.

User A

Group A

anonymous

The logged-out viewer matches the authentication type. The user and group are not specified.



“Any” match case, User A who is part of Group A views content on the page:

User

Group

Authentication type

Show if/Hide if macro visibility

Explanation

User

Group

Authentication type

Show if/Hide if macro visibility

Explanation

User A

Group A

none

The viewer matches either User A or Group A.

User A

-

none

The viewer matches User A.

-

Group A

none

The viewer matches Group A.

-

-

authenticated

The viewer matches the authenticated condition.

-

-

anonymous

The viewer does not match the anonymous condition.

User A

Group A

anonymous

The viewer matches either User A or Group A.



“Any” match case, the logged-out user views content on the page:

User

Group

Authentication type

Show if/Hide if macro visibility

Explanation

User

Group

Authentication type

Show if/Hide if macro visibility

Explanation

User A

Group A

none

The logged-out viewer does not match either User or Group.

User A

-

none

The logged-out viewer does not match the User condition.

-

Group A

none

The logged-out viewer does not match the Group condition.

-

-

authenticated

The logged-out viewer does not match the authentication type.

-

-

anonymous

The logged-out viewer matches the authentication type.

User A

Group A

anonymous

The logged-out viewer matches the authentication type.