If you dont want to use @defining, you could always do something like @var x=0; x=x+1 and later use variable x, which is the second answer in the linked question.
Why don't you want to use @defining? Is it about having too many indentations? If so, I think you shouldn't worry, because you should not need this kind of variables so often. It would be only a few. If you need more, then most probably you need to break apart your template into small pieces.
@defining, you could always do something like@var x=0; x=x+1and later use variablex, which is the second answer in the linked question.@defining? Is it about having too many indentations? If so, I think you shouldn't worry, because you should not need this kind of variables so often. It would be only a few. If you need more, then most probably you need to break apart your template into small pieces.