Sorry but i’m not understanding this.
I’m putting two statements on different lines in the template editor. I’m not combing them in any way (knowingly). I expected them to be quite independent.
Or
Have I completely misunderstood how the template editor works which is always possible. Are separate lines interpreted together in some way even if they are not logically connected ?
The two templates are on separate lines. That means there’s a (non-visible) newline character at the end of the first template.
The Template Editor looks at the complete result of both templates and sees two numbers separated by a newline. A pure number doesn’t contain newlines so it calls the final result a string.
So if your first template produces 5 and the second one produces 10 it looks like this in the Template Editor:
5
10
The 5 and 10 are separated by a newline character. There’s no integer value that looks like “5 on top of 10” so it reports the result is a string value, not a number.