I want to use some templex functions for notes and text boxes that extract values from curves, such as the peak value and final value. For the peak, I can use the indexofmax(curve.id) function. Is there a similar one to get the final point? I wasn't able to find a similar command in the help.