ifPartsunlessParts
IfPartsunlessParts is a conditional mechanism used in modular templating and content composition to select between two sets of parts depending on whether particular parts are present. It is designed for environments where pages, components, or products are assembled from multiple parts and where availability of those parts determines what should be shown.
In practice, the construct allows authors to express that the ifParts branch should be included when the
Semantics commonly involve evaluating a parts-related condition and then rendering the corresponding branch. If the condition
Syntax is typically expressed as a directive or function that takes three elements: a condition about parts,
See also: conditional rendering, fallback content, template directives, mutually exclusive branches.