---
title: "Format and conditions attributes"
description: "How to format attributes in your templates?"
url: https://support.signitic.com/en/articles/8224252-format-and-conditions-attributes
collection: "Formatting and display"
updated: 2026-10-29
language: en
alternates: [fr, it, de, pt]
---

# Format and conditions attributes

How to format attributes in your templates?

In this article, we will see :

-   how to format an attribute (1st letter in upper case, etc.)
    
-   how to put conditions on attributes
    

For the fields in the text block, it is possible, for example, **to integrate a suffix or a prefix**. If the field is empty then it will not appear in the template.

## **❶** Access the Templates menu

The attributes are accessible from your [template editor](https://signitic.app/template/25219/edit): Create or select one of your templates.

## **❷** Click on the text block

![](https://staticfiles.gleap.io/helpcenter/669e4628f35b0c8e9eff6ebe/20240731162152_9925.png)

In your editor, click on the text block to bring up the Content menu.

## **❸** Select the attribute

![](https://staticfiles.gleap.io/helpcenter/669e4628f35b0c8e9eff6ebe/20240731162152_6527.png)

**Select the attribute** you want to include in your template and use our magic formulas.

## ⬇ Details of the magic formulas

In order to manage the case of the first and last name, you must capitalize the attributes:

`{{Firstname}} {{Lastname}}`

_will display Thomas DUPONT_

`{{Firstname}} {{Lastname}}`

_will display Thomas Dupont_

_To check if one or more attributes are not empty:_

`{{if firstname}}{{lastname}}{{endif}} {{lastname}}`

_will be displayed only_ **_if first name is not empty_**_._

`{{mobile}}{{if mobile and phone}}-{{endif}}{{phone}}`

_will display '-' between tel and mobile_ **_if both are filled_**_._

`{{mobile}}{{if mobile or phone}}-{{endif}}{{phone}}`

_will display '-' between the tel and the mobile_ **_if one of them is filled_**_._

`{{if empty phone}}04 05 06 07 08{{endif}}`

_will be displayed_ **_only if telephone is empty_**_._

`{{if reply}}04 05 06 07 08{endif}}`

_will be displayed_ **_only in the reply signature_**_._

`{{if department like "marketing"}}Marketing & Communication{endif}}`

_will be displayed_ **_only if the attribute contains marketing_**_._

`{{if department like "{{title}}"}}Marketing & Communication{{endif}}`

_will be displayed only if the department attribute is equal to the "{{title}}" attribute._

`{{if department not like "{{title}}"}}Marketing & Communication{{endif}}`

_will be displayed only if the department attribute is not equal to the "{{title}}" attribute._

## **❹** The Conditions menu

![](https://staticfiles.gleap.io/helpcenter/669e4628f35b0c8e9eff6ebe/20240731162152_1423.png)

You can use the attribute conditions drop-down menu to help you use these formulas.

## **❺** Preview

![](https://staticfiles.gleap.io/helpcenter/669e4628f35b0c8e9eff6ebe/20240731162152_1178.png)

Then, check the result with the Preview tab!
