km_add_if_calculation
Add an If-Then-Else action to a macro that executes conditional actions based on a calculation condition like 'Counter >= 5'.
Instructions
Add an If-Then-Else action that checks a calculation condition (e.g., "Counter >= 5").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macroIdentifier | Yes | Macro name or UID | |
| calculation | Yes | Calculation condition (e.g., "Counter >= 5", "Price < MaxPrice") | |
| thenActionsXml | No | Optional: XML actions for true condition. Pass one or more <dict>...</dict> elements concatenated (they get wrapped in <array>). Example: <dict><key>MacroActionType</key><string>Notification</string><key>Title</key><string>Hi</string><key>Text</key><string>Msg</string></dict> | |
| elseActionsXml | No | Optional: XML actions for false condition. Same format as thenActionsXml. |