Description: Sums the duration of reasons whose named custom entry exactly equals the requested value.
Calling convention: SumIfReasonEntryValue("ReasonContainerName": String, "CustomReasonEntryName": String, CustomReasonFieldValue: Variant): Float
Parameters:
ReasonContainerName: reason-container entry in the current record.
CustomReasonEntryName: custom reason entry name; matching is case-insensitive for the entry name.
CustomReasonFieldValue: Variant value compared with the custom reason entry.
Returns: Total matching duration as Float. NULL is returned when no reason matches or when no current record is available.
Availability: Default; requires a current record and a valid reason container.
Example:
Total := SumIfReasonEntryValue("DowntimeReasons"; "Shift"; 2);