1. Home
  2. Automation
  3. Creating an email signature with simple logic

Creating an email signature with simple logic

This post is also available in: Português

This tutorial will guide you through the process of adding simple logic to your email signatures using Bybrand, allowing you to create dynamic signatures for employees that only display phone numbers when they’re available.

By following these steps, you’ll learn how to customize your signatures to present a clean, professional appearance while ensuring that contact information is only shown when not empty.

The example in this video shows how to display the phone number when the field is filled in, but note that the logic works for any department placeholder.

Video:


Adding simple logic to signatures with automation

First, Log in to your Bybrand account. Navigate to the department where you want to edit the signature. Then, Click on the signature to open the editor.

In the signature linked to the department, find the area where the phone number is displayed. Identify the placeholder used for the phone number (e.g., {{phone}})

Add conditional logic

  • Surround the phone number placeholder with conditional tags
  • Use the following format: {{#phone}}Phone: {{phone}}{{/phone}}
  • This ensures the field only appears when it’s not empty
{{#phone}}Phone: {{phone}} {{/phone}}

Example for the mobile placeholder (if applicable):

  • Locate the mobile number field in the signature
  • Apply the same conditional logic: {{#mobile}}Mobile: {{mobile}}{{/mobile}}
{{#mobile}}Mobile: {{mobile}} {{/mobile}}

After adding the conditional logic, save the signature and back to employees list.

Test the Signature

Check employees with and without phone numbers. Verify that the phone field only appears for employees with a number entered.

Additional Notes

  • The logic follows the Mustache Tags rules.
  • This conditional logic can be applied to any placeholder in the department signature
  • Always test thoroughly before deploying to ensure the logic works as expected
Updated on 9 de October de 2024
Was this article helpful?
Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support