For the complete documentation index, see llms.txt. This page is also available as Markdown.

Combining Components with Render Logic

Use conditional logic inside component templates.

Combining Components with Render Logic

Component templates fully support:

  • RENDER statements

  • Nested conditional logic

Render logic inside a component is evaluated per component instance. When a component repeats via a query, each record evaluates its own conditions independently.

Example 1: Conditional Fields Per Record

<h3>{{!Opportunity.Name}}</h3>

<!--RENDER={{!Opportunity.Amount}} != null -->
<p>Amount: {{!Opportunity.Amount}}</p>
<!--ENDRENDER-->

Example 2: Conditional Messaging by Status

<!--RENDER={{!Opportunity.StageName}} == 'Closed Won' -->
  <p><strong>Status:</strong> Deal Won 🎉</p>
<!--ENDRENDER-->

<!--RENDER={{!Opportunity.StageName}} == 'Closed Lost' -->
  <p><strong>Status:</strong> Deal Lost</p>
<!--ENDRENDER-->

Example 3: Using Prefix / Postfix Tags

Show headers only when data exists:

Suppress labels when values are null:

Prefix and postfix tags are evaluated within each component instance.

Last updated

Was this helpful?