---
title: "Conditional Fields (Pre-2022 Legacy)"
slug: "conditional-fields-pre-2022-legacy"
updated: 2024-01-14T02:23:51Z
published: 2024-01-14T02:23:51Z
canonical: "help.opensense.com/conditional-fields-pre-2022-legacy"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.opensense.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Conditional Fields (Pre-2022 Legacy)

Pre-2022 templates were built using our legacy HTML syntax. **This article is for you if your tags are in $tag; format**

You can make a field optional if some Users use it, and other do not. Optional fields will be automatically removed from Email Signatures that do not use the field.

You can wrap IF statements around any signature elements to make them appear only if that field is used

## If Conditional Fields Share the Same Line

- HTML Code  
![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/oldConditionalFields1.png)
- Signature Preview **with logic**  
![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/oldConditionalFields2.png)
- Recipient's Email Rendering (If either field is removed, the separator line is also removed!)  
![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/oldConditionalFields3.png)

## If Conditional Field is on it's Own Line

- HTML Code  
![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/oldConditionalFields4.png)
- Signature preview **with logic**  
![](https://cdn.document360.io/05b0e12d-96a6-4b75-a423-672ab2be88d7/Images/Documentation/oldConditionalFields5.png)

Need "not if" logic? Opensense can also do this!

Wrap your HTML code with {nif_field}Alternative Text{/nif_field} instead.

**Example**: {nif_phone}1-800-MAINLINE{/nif_phone}
