---
title: "Apply Custom Formatting to Fields"
---


Sometimes users need to apply custom formatting to fields. In this article, we will look at a couple of examples of how this can be done.

To learn more options, see the full list of properties for each field type in the corresponding class in the [Fields module](https://reference.aspose.com/words/nodejs-net/aspose.words.fields/).

## How to evaluate `IF` condition

If you want to evaluate `IF` condition after mail merge, you can use the [EvaluateCondition](https://reference.aspose.com/words/nodejs-net/aspose.words.fields/fieldif/evaluatecondition/) method that immediately returns the result of the expression evaluation.

The following code example shows how to use this method:

{{< gist "aspose-words-gists" "b62cbbccff1a140de484012aafd71fa2" "evaluate-if-condition.js" >}}
