Element-Based IF (data-pac-bind="if: ...")
Note: The outer div stays in the DOM (with its styling), only the innerHTML is hidden.
✓ Message is visible (element-based if)
✗ Message is hidden (element-based if with negation)
Inspect in DevTools: Empty divs with classes remain visible when conditions are false.
Comment-Based IF (elements)
✓ Message is visible (comment-based wp-if)
✗ Message is hidden (comment-based wp-if with negation)
Comment-Based IF (multiple siblings)
Item 1
Item 2
Item 3
All items hidden - check the box to see them