Variable definitions must precede the code block and cannot be defined within the code, i.e. after starting the first code line in a template.