Short answer:
Use the NULL statement to hide empty fields in email signatures. If a field has no value, its content is automatically removed to avoid blank lines.
Use the NULL statement to automatically hide empty fields in an email signature.
This is useful when employees do not all have the same contact details, such as a mobile number, direct phone number, or department name. Without a NULL statement, empty fields can leave unwanted blank spaces or lines in the signature.
This guide explains what the NULL statement does, when to use it, and how to apply it.
What does the NULL statement do?
The NULL statement checks whether a field contains data.
- If the field contains data, Xink shows the defined content
- If the field is empty, the content is removed
This keeps your email signatures clean and avoids empty lines.
NULL statement syntax
Use this syntax:
{$$NULL(FieldName)$$VALUE(Content to show when the field has data)$$}Example:
{$$NULL(Mobile)$$VALUE(m: ((Mobile)))$$}In this example:
- Mobile is the field being checked
- m: ((Mobile)) is only shown when the employee has a mobile number
Visual example
Without the NULL statement:
Ann Appleseed Sales Manager m:
With the NULL statement:
Ann Appleseed Sales Manager
The empty line is removed, resulting in a cleaner signature.
How to remove ((Mobile)) when no value exists
- Go to Signatures
- Open the signature template
- Find the mobile field line:
m: ((Mobile))
- Replace it with:
{$$NULL(Mobile)$$VALUE(m: ((Mobile)))$$}- Click Preview
- Test with users with and without mobile numbers
How to remove the line break
To remove both the content and the line break, include the line break inside the VALUE section.
Example:
{$$NULL(Mobile)$$VALUE(m: ((Mobile))
)$$}This ensures no empty space remains.
Tips for testing
- Use Preview to verify the result
- Test with users:
- with data
- without data
- The built-in designer may not reflect the final output — rely on Preview
Common use cases
- Mobile number
- Direct phone number
- Department
- Office location
- Pronouns
- Custom fields
