# ConditionalFormatter

> Formats primitive types by matching them against condition patterns.

## 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 ConditionalFormatter : FormatterBase, IFormatter, IFormatterLiteralExtractor
```

## Constructors

| Constructor                                                                                                          | Description                              |
| -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [ConditionalFormatter()](/engine/6000.7/script-reference/unity/smartstrings/extensions/conditionalformatter/ctor.md) | Creates a new instance of the formatter. |

## Properties

| Property                                                                                                     | Description                                                                                                 |
| ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| [SplitChar](/engine/6000.7/script-reference/unity/smartstrings/extensions/conditionalformatter/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)
