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.
name
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.
value
The value can either be an expression a string, a number or a combination of all three.
expressions
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
Strings are always defined by single quotes.
numbers
Numbers do not need to be enclosed by single quotes.
Concatenation
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.