# NullFormatter

> Formats null values.

## Definition

* **Type:** Class
* **Namespace:** [Unity.SmartStrings.Extensions](/engine/6000.7/script-reference/unity/smartstrings/extensions.md)
* **Assembly:** UnityEngine.SmartStringsModule
* **Inherits from:** [FormatterBase](/engine/6000.7/script-reference/unity/smartstrings/core/extensions/formatterbase.md)
* **Implements:** [IFormatter](/engine/6000.7/script-reference/unity/smartstrings/core/extensions/iformatter.md), [IFormatterLiteralExtractor](/engine/6000.7/script-reference/unity/smartstrings/core/extensions/iformatterliteralextractor.md)

```csharp
public class NullFormatter : FormatterBase, IFormatter, IFormatterLiteralExtractor
```

## Remarks

Smart.Format("\{0:isnull:It's null}", arg) Smart.Format("\{0:isnull:It's null|Not null}", arg) Smart.Format("\{0:isnull:It's null|\{}}", arg)

## Properties

| Property                                                                                              | Description                                                                                                 |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [SplitChar](/engine/6000.7/script-reference/unity/smartstrings/extensions/nullformatter/splitchar.md) | The character used to split the option text literals. Valid characters are: \| (pipe) , (comma)  \~ (tilde) |

## Inheritance

**Inherited Members:**

* [FormatterBase.DefaultName()](/engine/6000.7/script-reference/unity/smartstrings/core/extensions/formatterbase/defaultname.md)
