In short test first 2 values who is greater and then testing that to the last value.
You may used >= for clarity but if 2 are equal then the result is the same.
Value 1 = 3
Value 2 = 8
Value 3 = 7
yes .. Result = Value 1
yes .. Value 1> Value 3
no .. Result = Value 3
Value 1 > Value 2
yes .. Result = Value 2
no .. Value 2> Value 3
no .. Result = Value 3
If you don’t mind using the HomeyScript app, then that’s a relatively easy solution too, and is infinitely expandable, not just 2 or 3 tokens, just separate the tokens with a semicolon (;).
Card used: Run [code] with [argument] and return Number-tag
Or if you rather don’t want to use another app, you can also save the maximum value in a logic variable first and trigger the rest of your flow on that change: