Declaring a variable in EVML.

You should declare variables before you use them and this must be done within EV Script tags. For example:

    var a;
    var b = 1;

Template Scope

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. 

COVID-19 NOTICE – Business as Usual
Evance continues to provide all services and support throughout this difficult period. See our full statement here