Use the NULL statement to automatically hide empty fields in an email signature.
This is useful when some employees do not have the same contact details, such as a mobile number, direct phone number, or department name. Without a NULL statement, an empty field can leave unwanted blank spaces or empty lines in the signature.
This guide explains what the NULL statement does, when to use it, and how to apply it with a simple visual example.
What does the NULL statement do?
The NULL statement checks whether a field contains data.
- If the field contains data, Xink shows the content you define.
- If the field is empty, Xink removes that content so it does not appear in the signature.
This helps keep your email signatures clean and avoids blank 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, the signature may look like this when the mobile field is empty:
Ann Appleseed Sales Manager m:
With the NULL statement, the empty line is removed:
Ann Appleseed Sales Manager
This makes the signature look finished and professional, even when employee data is incomplete.
How to remove ((Mobile)) when employees have no mobile number
- Go to Signatures.
- Open the email signature you want to edit.
- Find the line where the mobile field is used, for example:
m: ((Mobile))
- Replace it with this NULL statement:
{$$NULL(Mobile)$$VALUE(m: ((Mobile)))$$}- Click Preview.
- Select a user who does not have a mobile number.
- Confirm that the mobile line is hidden.
- Select a user who does have a mobile number.
- Confirm that the mobile line is shown correctly.
How to remove the line break too
If you want to remove both the content and the line break when the field is empty, place the line break inside the VALUE part of the statement.
Example:
{$$NULL(Mobile)$$VALUE(m: ((Mobile))
)$$}This is useful when the field is placed on its own line in the signature.
Tips for testing
- Always use Preview when testing NULL statements.
- Test with both:
- a user who has data in the field
- a user who has an empty field
- If the syntax looks unusual in the built-in designer, that is expected. The Preview shows the actual result.
Common use cases
You can use the NULL statement for many types of employee data, for example:
- Mobile number
- Direct phone number
- Department
- Office location
- Pronouns
- Custom fields
Related guides
You may also find these guides useful:
