A More Complex Procedure

You can create a completx threshold procedure that performs different actions, depending on the value of the parameters passed to it.

Its conditional logic allows it to be used with both log and data segments.

The procedure: