At the risk of being thought somewhat lateral here... > <h2 tal:condition="template/title | template/id">Has a Title or Id</h2> I'd do this as: <h2 tal:condition="python:template.title or template.id">Has a Title or Id</h2> ...since the rules for Python expressions are generally easier to understand or clarify with the use of parentheses. :) ben