CUSTOM_MAX¶
Description¶
CUSTOM_MAX returns the maximum element in a list as described by a second list.
The second list gives the assigns a value to items in the first list in ascending order.
If an element of the first list is not present in the second list, it is considered lower than all mentioned elements
Example: Case colours¶
Given a list of case colours like [red, green, green] we would like to return the maximum as described by [green,
orange, red], where green means lowest value and red means highest value, so saying that red cases are most important:
This will return red, as this is the maximum in the first list as described by the second list.
Empty list¶
CUSTOM_MAX returns unknown for an empty list, the way MAX does.
A Case with no instances to compare leaves the result unknown rather than failing the rule.
Info
New in Atfinity 17.
An empty list returns unknown, where it previously failed.