Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
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.
IF
conditionIf you want to evaluate IF
condition after mail merge, you can use the EvaluateCondition method that immediately returns the result of the expression evaluation.
The following code example shows how to use this method:
# For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Python-via-.NET | |
builder = aw.DocumentBuilder() | |
field = builder.insert_field("IF 1 = 1", None).as_field_if() | |
actualResult = field.evaluate_condition() | |
print(actualResult) |
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.