"mvt:assign" Snippets


Basket #69956

Executes the expression contained within value and saves that value to the variable defined in the name attribute. [Documentation](http://www.miva.com/template-language/miva_template_language/mvtassign,_mvteval.html)
Created: 1511878501
View "Basket #69956"
<mvt:assign name="g.foo" value="'bar'" /> &mvte:global:foo;
 

Basket #62367

Executes the expression contained within value and saves that value to the variable defined in the name attribute. [Documentation](http://www.miva.com/template-language/miva_template_language/mvtassign,_mvteval.html)
Created: 1506634954
View "Basket #62367"
<mvt:assign name="g.sam" value="1 + 2" /> <mvt:assign name="g.sum" value="g.sam" /> The sum is: &mvt:global:sum;
 

Basket #47909

Executes the expression contained within value and saves that value to the variable defined in the name attribute. [Documentation](http://www.miva.com/template-language/miva_template_language/mvtassign,_mvteval.html)
Created: 1498584880
View "Basket #47909"
<mvt:assign name="l.sum" value="1 + 2" /> The sum is: &mvt:sum;
 

Basket #42905

Executes the expression contained within value and saves that value to the variable defined in the name attribute. [Documentation](http://www.miva.com/template-language/miva_template_language/mvtassign,_mvteval.html)
Created: 1494377806
View "Basket #42905"
<mvt:assign name="g.sum" value=" 'somehthing '" /> <mvt:assign name="g.more" value=" <mvt:eval expr="g.sum" />',PGA '" /> The sum is: &mvt:global:more;
 

Basket #37172

Executes the expression contained within value and saves that value to the variable defined in the name attribute. [Documentation](http://www.miva.com/template-language/miva_template_language/mvtassign,_mvteval.html)
Created: 1490213431
View "Basket #37172"
<mvt:do name="l.settings:category_count" file="g.Module_Library_DB" value="Runtime_CategoryList_Load_All( l.settings:categories )" /> <mvt:foreach iterator="category" array="categories"> &mvt:category:code;<br> &mvt:category:name;<br> </mvt:foreach>
 

Basket #33735

Executes the expression contained within value and saves that value to the variable defined in the name attribute. [Documentation](http://www.miva.com/template-language/miva_template_language/mvtassign,_mvteval.html)
Created: 1488216947
View "Basket #33735"
<mvt:assign name="l.settings:my_other_string" value="'I know when that hotline bling! That can only mean one thing. - Drake\'s best song ever'" /> &mvte:my_other_string;
 
View "MivaScript - mvt:assign encoding"
<mvt:assign name="l.settings:product:name" value="'This, is a product name & more!'" /> <b>No encoding:</b> &mvt:product:name;<br> <b>encodeattribute:</b> <mvt:eval expr="encodeattribute( l.settings:product:name )"/><br> <b>encodeentities:</b> <mvt:eval expr="encodeentities( l.settings:product:name )"/>
 
View "MivaScript - mvt:assign encoding"
<mvt:assign name="l.settings:product:name" value="'This is a product name'" /> <b>No encoding:</b> &mvt:product:name;<br> <b>encodeattribute:</b> <mvt:eval expr="encodeattribute( l.settings:product:name )"/><br> <b>encodeentities:</b> <mvt:eval expr="encodeentities( l.settings:product:name )"/>
 
View "MivaScript - mvt:assign encoding"
<mvt:assign name="l.settings:product:name" value="'This is a product name'" /> <b>No encoding:</b> &mvt:product:name;<br> <b>Attribute Encoded:</b> <mvt:eval expr="encodeattribute( l.settings:product:name )"/><br> <b>Entity Encoded:</b> <mvt:eval expr="encodeentities( l.settings:product:name )"/>
 

Snippet: 1431393846 - v1

Executes the expression contained within value and saves that value to the variable defined in the name attribute. [Documentation](http://www.miva.com/template-language/miva_template_language/mvtassign,_mvteval.html)
Created: 1431393846
View "Snippet: 1431393846 - v1"
<mvt:assign name="g.sum" value="1 + 2" /> The sum is: &mvt:global:sum;r
 

Basket #1532

Executes the expression contained within value and saves that value to the variable defined in the name attribute. [Documentation](http://www.miva.com/template-language/miva_template_language/mvtassign,_mvteval.html)
Created: 1431393842
View "Basket #1532"
<mvt:assign name="g.sum" value="1 + 2" /> The sum is: &mvt:global:sum;r
 

mvt:assign

Executes the expression contained within value and saves that value to the variable defined in the name attribute. [Documentation](http://www.miva.com/template-language/miva_template_language/mvtassign,_mvteval.html)
Created: 1427237965
View "mvt:assign"
<mvt:assign name="g.sum" value="1 + 2" /> The sum is: &mvt:global:sum;