Conditional Tags

Conditional tags let you show content only when a data field has a value, preventing empty spaces in signatures.

Syntax

{{#if phone}}
  <td>P: {{phone}}</td>
{{/if}}

The content between {{#if}} and {{/if}} only appears when the specified field has a value.

Else Blocks

{{#if mobile}}
  <td>M: {{mobile}}</td>
{{else}}
  <td>P: {{phone}}</td>
{{/if}}

Common Use Cases

  • Hiding phone fields when no number is set
  • Showing department only for certain users
  • Displaying optional social media links
  • Conditional banners or promotional content