Declaring a variable in EVML.
You should declare variables before you use them and this must be done within EV Script tags. For example:
<?ev var a; var b = 1; ?>
Variables declared within a template are available only within the scope of the template. They are not available to CMS editable regions. Although basic EVML may be used within <ev:editable /> regions the region context is not the same as the template's. For the purposes of compatibility between EVML templates each template only has access to default variables declared by the controller.