24/7 Support: 800.608.6482

Developer Docs

Template Language

mvt:assign Reference Documentation

Requirements For Use

5.18 Engine or Higher

Available on any page, no item assignment required.


Executes the expression contained within value and saves that value to the variable defined in the name attribute.



This can be a local or global variable as defined by l. or g.

examples: l.myvariable or g.myglobalvariable.

If no prefix (l. or g.) is given it defaults to be a global variable.


The value can either be an expression a string, a number or a combination of all three.


Any value contained in the value attribute will automatically be treated as an expression. This means text will be treated as variables and any function available with the Miva Empresa engine (link) will be evaluated.



Strings are always defined by single quotes.



Numbers do not need to be enclosed by single quotes.



The $ is the concatenation operator in the Miva Template Language can everyting is evaluated, it can be used in the value attribute within the mvassign tag.


Outputing Values to the Page

If you want to display a value to the screen it needs to a global variable or part of the l.settings structure.


This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.


Copyright © 1997 – 2023 Miva©, Miva Merchant©, MivaPay©, MivaCon©, Camp Miva ℠, Miva, Inc. All Rights Reserved.