[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-658855-105":3,"detail-sidebar-cat-1-en-105":80,"doc-detail-658855-en":126,"doc-similar-658855":157},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","insert-if-sections-insert-conditional-parts-into-shared-email-templates","Insert-if Sections - Insert conditional parts into shared email templates","","Insert-if sections enable conditional insertion of specific parts of a shared email template—such as paragraphs, lists, list items, tables, and table rows—into an email message only when predefined criteria are met. Conditions can be based on message field text (e.g., To or subject content using optional regular expressions, case sensitivity, and combined AND/OR logic) or on WhatToEnter (WTE) macro results. The guide explains how to add, change, remove, and nest insert-if sections, indicated by green markers and applied through dialog-driven data selection.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/template/","Template",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/template/letters/","Letters",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/template/insert-if-sections-insert-conditional-parts-into-shared-email-templates/658855/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/insert-if-sections-insert-conditional-parts-into-shared-email-templates/658855.png","ImageObject",442,249,{"name":42,"@type":43},"lugxt","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-12-02","2026-10-26",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is an Insert-if section in a shared email template?","Question",{"text":62,"@type":63},"An Insert-if section is a template part (e.g., paragraph, list, table row) that is inserted into an email message only when a specified condition is met.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How can I add a condition based on email message fields?",{"text":67,"@type":63},"Select the template part, choose Add condition, keep Message fields under Find in, select which fields to check, pick a condition, and provide the lookup text or a regular expression. You can use Case-sensitive options and combine criteria with AND/OR.",{"name":69,"@type":60,"acceptedAnswer":70},"How can I add a condition based on a WhatToEnter (WTE) macro result?",{"text":71,"@type":63},"Add the condition and set Find in to WhatToEnter result, then select the specific WTE macro and define the condition and lookup text/regular expression. Insert-if logic will validate the returned WTE result before inserting the conditional section.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},658855,1793054980,{"code":4,"msg":81,"data":82},"success",[83,88,93,98,103,108,113,117,122],{"id":84,"doc_module":22,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},11,"Presentations",90,"presentations",{"id":89,"doc_module":22,"doc_module_name":25,"category_name":90,"show_sort_weight":91,"slug":92},12,"Resumes",80,"resumes",{"id":94,"doc_module":22,"doc_module_name":25,"category_name":95,"show_sort_weight":96,"slug":97},14,"Invoices",70,"invoices",{"id":99,"doc_module":22,"doc_module_name":25,"category_name":100,"show_sort_weight":101,"slug":102},15,"Posters",60,"posters",{"id":104,"doc_module":22,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},16,"Social Media",50,"social-media",{"id":109,"doc_module":22,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},17,"Forms",40,"forms",{"id":114,"doc_module":22,"doc_module_name":25,"category_name":29,"show_sort_weight":115,"slug":116},18,30,"letters",{"id":118,"doc_module":22,"doc_module_name":25,"category_name":119,"show_sort_weight":120,"slug":121},21,"Paper Templates",5,"papers-templates",{"id":123,"doc_module":22,"doc_module_name":25,"category_name":124,"show_sort_weight":4,"slug":125},158,"General","general-158",{"code":4,"msg":81,"data":127},{"doc_id":78,"user_id":128,"nickname":42,"user_avatar":129,"doc_module":22,"category_id":114,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":135,"language":136,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":12,"update_tm":79,"read_time":26,"preview_page_count":33,"preview_urls":140},3985747862600,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Shforared EmMicrosoftaiOluTtlemookplates Insert-if Sections  \nTo get a part of a template—a paragraph, a list, a list item, a table, or a table row—inserted into an email message along with the entire template only if a certain condition is met, add a condition to that part, and the part will become an Insert-if section.  \nHow to add a condition  \nBased on text in an email message field  \n1 When creating or editing a template, right-click a paragraph, a list, a list item, a table, or a table row, and then select Add condition.  \nYou can also add a condition to some text in a paragraph, a list item, or a table cell. Simply select that text, right-click it, and select Add condition to selection.  \nIf you add a condition to a list item, you won't be able to add a condition to the whole list, and vice versa. If you add a condition to atable row, you won't be able to add a condition to the whole table, and vice versa.  \n2 Under Find in, keep Message fields selected.  \n• Select fields that will be checked for the condition you're adding.  \n• Select a condition.  \n• Enter some text that the add-in will look for when checking the condition. You can also enter a regular expression.  \n[Ablebits.com](Ablebits.com) 1  \nShforared EmMicrosoftaiOluTtlemookplates Insert-if Sections  \n You can select the Case-sensitive  \ncheckbox for such conditions as \"contains\",\"doesn't contain\", \"contains any of\", \"contains none of\", \"is equal to\", \"is equal to any of\", and\"is equal to none of\".  \n To combine conditions, use the AND and OR buttons.  \nFor example, a paragraph will be inserted along with the entire template if the To field contains a specific domain and the subject contains a specific word or phrase, or the To field contains the same domain and the message body contains another specific word or phrase.  \n3 A green indicator will mark the section that you've added the condition to. Select Save.  \nWhen you insert such a template into an email message, the add-in checks the specified email message field(s) for the condition and inserts the section that the condition is applied to only if the condition is met.  \nBased on the WTE macro result  \n You can add a condition based on the result returned by the WhatToEnter (WTE) macro if your template contains at least one WTE.  \nIf you want to use the result returned by the WTE macro only for checking a condition and you don't want that result to be inserted into an email message, you need to select the For Insert-if sections only checkbox when inserting the macro into your template. You can find this checkbox on the Advanced tab of the macro dialog.  \n1 When you're creating a new template or editing an existing one, right-click a paragraph, a list, a list item, a table, or a table row, and then select Add condition.  \n[Ablebits.com](Ablebits.com) 2  \nShforared EmMicrosoftaiOluTtlemookplates Insert-if Sections  \nIt's also possible to add a condition to some text in a paragraph, a list item, or a table cell. You just need to select the text, right-click it, and select Add condition to selection.  \nIf you add a condition to a list item, you  \nwon't be able to add a condition to the whole list, and vice versa. If you add a condition to atable row, you won't be able to add a condition to the whole table, and vice versa.  \n2 Under Find in, select WhatToEnter result.  \n• From the list of the WhatToEnter macros your template contains, select the macro that you want to be checked for the condition.  \n• Select a condition.  \n• Enter some text that the add-in will look for when checking the condition. You can also enter a regular expression.  \n You can select the Case-sensitive  \ncheckbox for such conditions as \"contains\",\"doesn't contain\", \"contains any of\", \"contains none of\", \"is equal to\", \"is equal to any of\", and\"is equal to none of\".  \n Tip. You can use the AND and OR buttons to combine conditions.  \n3 A green indicator will appear next to the section that you've added the condition to. It's an Insert-if s","cbCaiuKFhaVrkbcP","https://ap.wps.com/l/cbCaiuKFhaVrkbcP","pdf",504995,6,"English","# How to add a condition\n## Based on text in an email message field\n## Based on the WTE macro result\n# How to change a condition\n# How to remove a condition\n# Nested Insert-if sections\n# Learn more","[{\"question\":\"What is an Insert-if section in a shared email template?\",\"answer\":\"An Insert-if section is a template part (e.g., paragraph, list, table row) that is inserted into an email message only when a specified condition is met.\"},{\"question\":\"How can I add a condition based on email message fields?\",\"answer\":\"Select the template part, choose Add condition, keep Message fields under Find in, select which fields to check, pick a condition, and provide the lookup text or a regular expression. You can use Case-sensitive options and combine criteria with AND/OR.\"},{\"question\":\"How can I add a condition based on a WhatToEnter (WTE) macro result?\",\"answer\":\"Add the condition and set Find in to WhatToEnter result, then select the specific WTE macro and define the condition and lookup text/regular expression. Insert-if logic will validate the returned WTE result before inserting the conditional section.\"}]","Insert-if Sections - Insert conditional parts into shared email templates | PDF",[141,145,149,153],{"page_no":22,"url":142,"width":143,"height":144},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/45da3030d1c62ca6591f0730a6540a9f.webp",983,1272,{"page_no":26,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/405534717236c19153c78e652904f81b.webp",982,1270,{"page_no":30,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/d60d7a9af547c7183b1d4597fa4bfa7e.webp",981,1269,{"page_no":33,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/962b62a1bb8abab800718553052d3467.webp",980,1268,{"list":158,"token":11},[159,164,170,176,183,189,196,202,208,215],{"doc_id":160,"doc_title":161,"file_type":133,"home_preview_img_url":162,"slug":163,"view_count":30,"category_name":29,"create_tm":79},658856,"Shared Email Templates for Microsoft Outlook - Regexes - Use RegexMatch, RegexExtract, and Insert-if sections","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229977486270/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=BF3dW5bd2vR96Zt8GJ2xl2l0Zxw%3D","shared-email-templates-for-microsoft-outlook-regexes-use-regexmatch-regexextract-and-insert-if-sections",{"doc_id":165,"doc_title":166,"file_type":133,"home_preview_img_url":167,"slug":168,"view_count":104,"category_name":29,"create_tm":169},189788,"Letter Template - No Prompts 2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229879546004/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=QikqdGBmDu5UrXmz3HkmxnC%2FZ0w%3D","letter-template-no-prompts-2",1788399205,{"doc_id":171,"doc_title":172,"file_type":133,"home_preview_img_url":173,"slug":174,"view_count":30,"category_name":29,"create_tm":175},658514,"Shared Email Templates for Outlook - Reply to emails faster than ever 10 - How to use template shortcuts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229976841401/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=AbNHR2NG7xR9zxokvLx9Mdas%2BK0%3D","shared-email-templates-for-outlook-reply-to-emails-faster-than-ever-10-how-to-use-template-shortcuts",1793050350,{"doc_id":177,"doc_title":178,"file_type":133,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":29,"create_tm":182},658628,"SBS-2026 Email Templates - Customer Email Templates - Small Business Saturday","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229976846546/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=%2FLdKOkGV2nT9cRdlu6yo6TUt2Sk%3D","sbs-2026-email-templates-customer-email-templates-small-business-saturday",8,1793051780,{"doc_id":184,"doc_title":185,"file_type":133,"home_preview_img_url":186,"slug":187,"view_count":135,"category_name":29,"create_tm":188},658696,"Add custom HTML code to an email template - Version 8 - instructions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229977273416/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=yN6MK3PMrWVnghoZWGlhxPf12EE%3D","add-custom-html-code-to-an-email-template-version-8-instructions",1793052814,{"doc_id":190,"doc_title":191,"file_type":192,"home_preview_img_url":193,"slug":194,"view_count":84,"category_name":29,"create_tm":195},171408,"Template Midget - removal request letter","docx","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229873952272/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=ejg7dx35UJi9fuJVcnpxC9vtnDs%3D","template-midget-removal-request-letter",1788282681,{"doc_id":197,"doc_title":198,"file_type":133,"home_preview_img_url":199,"slug":200,"view_count":120,"category_name":29,"create_tm":201},661440,"Streamline Your Communication With Gmail Email Templates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229980389899/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=hPF6VCZuhZgpiS%2Fef0w9Gi0f23I%3D","streamline-your-communication-with-gmail-email-templates",1793167434,{"doc_id":203,"doc_title":204,"file_type":133,"home_preview_img_url":205,"slug":206,"view_count":30,"category_name":29,"create_tm":207},665916,"Sample-file-on-%E2%80%9CHow-to-write-a-letter-or-email%E2%80%9D","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983872429/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=PIXYbhu%2BlCK9M1NG7sZ8ETVxXZQ%3D","sample-file-on-e2809chow-to-write-a-letter-or-emaile2809d",1793309268,{"doc_id":209,"doc_title":210,"file_type":133,"home_preview_img_url":211,"slug":212,"view_count":213,"category_name":29,"create_tm":214},256963,"Follow-Up & The “Thank You” Note - Email or Handwritten Thank-You Letter Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229895847780/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=Tdlpig0P5X8q4Zaf1Ac3BO2nc3U%3D","follow-up-the-thank-you-note-email-or-handwritten-thank-you-letter-guide",19,1789309739,{"doc_id":216,"doc_title":217,"file_type":133,"home_preview_img_url":218,"slug":219,"view_count":109,"category_name":29,"create_tm":220},256852,"Letter of Recommendation Request - Law School","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229896254474/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=yldl3gYfsmLBKb%2F4fGTH87o%2B07Q%3D","letter-of-recommendation-request-law-school",1789308151]