Got it working. Here’s the event graph:
The clamp values represent the min/max for the whole range of motion. The zero in the less-than block represents the point at which the pivots switch.