Rules with Functions
- Last UpdatedSep 05, 2025
- 1 minute read
If the result of a rule i s a PML function, it is executed, the result of the function is returned by the rule.
The function can have any parameters, but it must return a STRING value.
Note:
The RVALUE element which contains the function must have its purpose set to FUNC to
enable this function. The Rule Manager window automatically sets this purpose if it detects a function has been entered
in the Result column.
Rule functions may contain a special parameter <element> like this:
!!TestFixingRule(<element>)
When the rule is run, the <element> parameter is replaced with a string parameter of the evaluating element’s reference number.
If the evaluating element is =2013286748/65241, this function will run like this:
!!TestFixingRule('=2013286748/65241')
This will allow the fixing element to be queried within a rule function without needing to change the current element
See image for an example rule definition: