insert_if_field
Inserts an IF conditional field at the end of a Word paragraph to show true or false text based on a condition.
Instructions
Insert a Word IF conditional field at the end of a paragraph.
Args: para_id: w14:paraId of the target paragraph. condition: The condition expression (e.g. "x > 0"). true_text: Text to display when condition is true. false_text: Text to display when condition is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| para_id | Yes | ||
| condition | Yes | ||
| true_text | Yes | ||
| false_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |