Writing your own macros
A more powerful way of creating macros is to write your own. The principles are described in the macro user guide.
Macros enable you to:
Construct expressions.
Use expressions to control macro flow.
Use a range of relational operators.
Evaluate both expressions.
Assign values to variables and parameters by using assignments.
Click Help > Documentation > Parameters > Reference > Functions to list all the standard functions you can use in macros.
Note: For information about using parameter functions in setup sheets, see Using parameters in Setup Sheets.