[Index]
The Macro Evaluator is available to test a macro at a hierarchy level. Refer to the macro functions, syntax and examples in the documentation.
The result of the evaluated macro is displayed in the Output box.
Consider to following macro examples in the macro Evaluator that show the use of the Context Data input. If the Show Context check box is enabled, JSON formatted values can be specified for testing a macro.
The example macro is provided with different context values, resulting in different output. For further details on macros, refer to the macro reference material in the Designer Guide.
Macro:
(( previous.test_attr == fn.null )) < New Value > < {{ previous.test_attr }} >
Context Data | { "input": {}, "previous": { "test_attr": null } } |
Output | New Value |
Another example of Context Data:
Context Data | { "input": {}, "previous": { "test_attr": "YOYO" } } |
Output | YOYO |