I would appreciate some input on an expression I'm struggling with.
I have an animated sourceText attribute that uses a substring slider for revealing characters. I can't change that structure in my situation. Now I need another slider that shows the highest amount of revealed characters for the duration of every text. So I thought about comparing the Substring Slider values at the keyframes of both animations, taking the highest number from them for the final value.
Here is a depiction of what I am trying to achieve. I hope it is understandable. I tried to work it out by stacking for-loops but I have some conceptual problems, a hard time to figure out the best way to do it.

Thank you,
Thomas