in reply to Can't "last" outside a loop block

The code you posted doesn't contain a syntax error (as far as I was able to extract it).

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.