{"id":5918,"date":"2024-10-09T21:28:12","date_gmt":"2024-10-10T00:28:12","guid":{"rendered":"https:\/\/www.bybrand.io\/docs\/?post_type=ht_kb&#038;p=5918"},"modified":"2025-05-26T20:14:31","modified_gmt":"2025-05-26T23:14:31","slug":"simple-logic","status":"publish","type":"ht_kb","link":"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/","title":{"rendered":"Creating an email signature with simple logic"},"content":{"rendered":"\n<p>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&#8217;re available.<\/p>\n\n\n\n<p>By following these steps, you&#8217;ll learn how to customize your signatures to present a clean, professional appearance while ensuring that contact information is only shown when not empty.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">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 automation placeholder.<\/p>\n\n\n\n<p><strong>Video:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Implement Simple Logic in Employees&#039; Email Signatures\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/7ArgV_dszb8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Adding simple logic to signatures with automation<\/h2>\n\n\n\n<p>First, Log in to your Bybrand account. Navigate to the automation where you want to edit the signature. Then, Click on the signature to open the editor.<\/p>\n\n\n\n<p>In the signature linked to the automation, find the area where the phone number is displayed. Identify the placeholder used for the phone number (e.g., <strong>{{phone}}<\/strong>)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add conditional logic<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Surround the phone number placeholder with conditional tags<\/li>\n\n\n\n<li>Use the following format: {{#phone}}Phone: {{phone}}{{\/phone}}<\/li>\n\n\n\n<li>This ensures the field only appears when it&#8217;s not empty<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>{{#phone}}Phone: {{phone}} {{\/phone}}<\/code><\/pre>\n\n\n\n<p>Example for the mobile placeholder (if applicable):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Locate the mobile number field in the signature<\/li>\n\n\n\n<li>Apply the same conditional logic: {{#mobile}}Mobile: {{mobile}}{{\/mobile}}<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>{{#mobile}}Mobile: {{mobile}} {{\/mobile}}<\/code><\/pre>\n\n\n\n<p>After adding the conditional logic, save the signature and back to employees list.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Test the signature<\/h3>\n\n\n\n<p>Check employees with and without phone numbers. Verify that the phone field only appears for employees with a number entered.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional notes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The logic follows the <a href=\"https:\/\/mustache.github.io\/mustache.5.html\" target=\"_blank\" rel=\"noreferrer noopener\">Mustache Tags<\/a> rules<\/li>\n\n\n\n<li>This conditional logic can be applied to any placeholder in the dynamic signature<\/li>\n\n\n\n<li>Always test thoroughly before deploying to ensure the logic works as expected<\/li>\n\n\n\n<li>Guide: <a href=\"https:\/\/www.bybrand.io\/blog\/hyper-personalized-signatures\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to create hyper-personalized HTML signatures<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to add simple logic to your email signatures using the Bybrand editor.<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[62],"ht-kb-tag":[],"class_list":["post-5918","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-automation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating an email signature with simple logic - Bybrand<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating an email signature with simple logic - Bybrand\" \/>\n<meta property=\"og:description\" content=\"Learn how to add simple logic to your email signatures using the Bybrand editor.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/\" \/>\n<meta property=\"og:site_name\" content=\"Bybrand\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bybrandio\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-26T23:14:31+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@bybrandio\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/\",\"url\":\"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/\",\"name\":\"Creating an email signature with simple logic - Bybrand\",\"isPartOf\":{\"@id\":\"https:\/\/www.bybrand.io\/docs\/#website\"},\"datePublished\":\"2024-10-10T00:28:12+00:00\",\"dateModified\":\"2025-05-26T23:14:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.bybrand.io\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating an email signature with simple logic\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.bybrand.io\/docs\/#website\",\"url\":\"https:\/\/www.bybrand.io\/docs\/\",\"name\":\"Bybrand - Knowledge base\",\"description\":\"Business Email Signature Manager for IT Managers, and Marketers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.bybrand.io\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating an email signature with simple logic - Bybrand","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/","og_locale":"en_US","og_type":"article","og_title":"Creating an email signature with simple logic - Bybrand","og_description":"Learn how to add simple logic to your email signatures using the Bybrand editor.","og_url":"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/","og_site_name":"Bybrand","article_publisher":"https:\/\/www.facebook.com\/bybrandio\/","article_modified_time":"2025-05-26T23:14:31+00:00","twitter_card":"summary_large_image","twitter_site":"@bybrandio","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/","url":"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/","name":"Creating an email signature with simple logic - Bybrand","isPartOf":{"@id":"https:\/\/www.bybrand.io\/docs\/#website"},"datePublished":"2024-10-10T00:28:12+00:00","dateModified":"2025-05-26T23:14:31+00:00","breadcrumb":{"@id":"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bybrand.io\/docs\/article\/simple-logic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bybrand.io\/docs\/"},{"@type":"ListItem","position":2,"name":"Creating an email signature with simple logic"}]},{"@type":"WebSite","@id":"https:\/\/www.bybrand.io\/docs\/#website","url":"https:\/\/www.bybrand.io\/docs\/","name":"Bybrand - Knowledge base","description":"Business Email Signature Manager for IT Managers, and Marketers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bybrand.io\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/ht-kb\/5918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/comments?post=5918"}],"version-history":[{"count":4,"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/ht-kb\/5918\/revisions"}],"predecessor-version":[{"id":6611,"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/ht-kb\/5918\/revisions\/6611"}],"wp:attachment":[{"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/media?parent=5918"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=5918"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.bybrand.io\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=5918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}