"arrays" Snippets


Basket #51949

The MVT entities populate before the script executes allowing use of MVT within the script.
Created: 1500641297
View "Basket #51949"
<mvt:call action = "expression | 'literal'" method = "'GET|POST|HEAD|XML|RAW|OPTIONS|PUT|DELETE|TRACE|CONNECT'" content-type = "expression | 'literal'" fields = " expression | 'variable list'" files = " expression | 'literal'" certfile = "expression | 'literal'" certtype = "expression | 'literal'" certpass = "expression | 'literal'" timeout = "expression | 'literal'" headers = "expression | 'literal'"> <mvt:callstop /> <mvt:callcontinue /> </mvt:call> This example loads content from an external website and displays it on the page. <mvt:call ACTION="'http://www.content_server.com/incude/X_Files_Cast.html'" METHOD="'GET'"> <mvt:eval expr= "s.callvalue " /> </mvt:call>
 

Basket #46697

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1496853449
View "Basket #46697"
<mvt:assign name="g.foo" value="'bar'" /> &mvte:global:foo;<mvt:assign name="g.foo" value="'bar'" /> &mvte:global:foo;<mvt:assign name="g.foo" value="'bar'" /> &mvte:global:foo;<mvt:assign name="g.foo" value="'bar'" /> &mvte:global:foo;<mvt:assign name="g.foo" value="'bar'" /> &mvte:global:foo;<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Snippet: 1490660523 - v2

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1490660534
View "Snippet: 1490660523 - v2"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[1]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[2]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[3]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[4]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[1]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[2]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[2]:name" value="'Florida'" /> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> &mvt:example:states[2]:abbr; - &mvt:example:states[2]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Snippet: 1490660523 - v1

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1490660523
View "Snippet: 1490660523 - v1"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[1]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[2]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[3]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[4]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[1]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[2]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[2]:name" value="'Florida'" /> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> &mvt:example:states[2]:abbr; - &mvt:example:states[2]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Basket #36203

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1489530230
View "Basket #36203"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" /> <hr> <mvt:assign name="l.settings:testArray:color[1]" value="'red'" /> <mvt:assign name="l.settings:testArray:color[2]" value="'blue'" /> <mvt:assign name="l.settings:testArray:color[3]" value="'green'" /> <mvt:assign name="l.settings:testArray:color[4]" value="'orange'" /> <mvt:assign name="l.settings:testArray:color[5]" value="'yellow'" /> <mvt:foreach iterator="color" array="testArray:color"> <mvt:if expr="pos1 MOD 4 EQ 0"> &mvte:color; </mvt:if> </mvt:foreach> <hr> <mvt:assign name="l.settings:some_string" value="'My name is Juan.'" /> <mvt:assign name="l.settings:replace_string" value="glosub(l.settings:some_string, 'My name is', 'Me llamo')" /> &mvte:some_string;<br /> &mvte:replace_string; <hr> <mvt:assign name="l.settings:one" value="'Hello my name is '" /> <mvt:assign name="l.settings:two" value="'James'" /> <mvt:eval expr="l.settings:one $ l.settings:two" /> <hr> <mvt:assign name="l.settings:three" value="'Hello my name is James.'" /> <mvt:assign name="four" value="substring(l.settings:three, 6, len(l.settings:three))" /> &mvte:global:four; <hr> <mvt:assign name="l.name" value="'James'" /> &mvte:name; <!-- nope --> <mvt:eval expr="name" /> <!-- yep -->
 

Basket #32004

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1485540531
View "Basket #32004"
<mvt:assign name="g.basketTotalWeight" value="0.02 * power(10,2)" /> &mvt:global:basketTotalWeight;
 

Basket #31523

 arrays
Created: 1484586117
View "Basket #31523"
<must be l.settings> <mvt:assign name="l.settings:sliderProds[1]:name" value="'1965-67'" /> <mvt:assign name="l.settings:sliderProds[1]:desc" value="'1965-67 VW Beetle Stock Style Seat Upholstery'" /> <mvt:assign name="l.settings:sliderProds[1]:link" value="''" /> <mvt:assign name="l.settings:sliderProds[1]:src" value="'http://mivadev.jbugs.com/store/graphics/00000001/1965-1967%20VW%20Beetle%20Stock%20Seat%20Style.jpg'" /> <mvt:assign name="l.settings:sliderProds[1]:expand" value="'Florida'" /> <mvt:assign name="l.settings:sliderProds[2]:name" value="'1965-67'" /> <mvt:assign name="l.settings:sliderProds[2]:desc" value="'1965-67 VW Beetle Stock Style Seat Upholstery'" /> <mvt:assign name="l.settings:sliderProds[2]:link" value="''" /> <mvt:assign name="l.settings:sliderProds[2]:src" value="'http://mivadev.jbugs.com/store/graphics/00000001/1965-1967%20VW%20Beetle%20Stock%20Seat%20Style.jpg'" /> <mvt:assign name="l.settings:sliderProds[2]:expand" value="'Florida'" /> <mvt:assign name="l.settings:sliderProds[3]:name" value="'1968-69'" /> <mvt:assign name="l.settings:sliderProds[3]:desc" value="'1968-69 VW Beetle Stock Style Seat Upholstery'" /> <mvt:assign name="l.settings:sliderProds[3]:link" value="''" /> <mvt:assign name="l.settings:sliderProds[3]:src" value="'http://mivadev.jbugs.com/store/graphics/00000001/1965-1967%20VW%20Beetle%20Stock%20Seat%20Style.jpg'" /> <mvt:assign name="l.settings:sliderProds[3]:expand" value="'Florida'" /> <mvt:if expr="NOT ISNULL l.settings:sliderProds"> !!!!!! I AM HERE !!!!!! </mvt:if> <mvt:assign name="g.sliderProds" value="l.settings:sliderProds" /> <b>SHOW ME: </b> &mvt:global:sliderProds; <hr></hr> <mvt:foreach iterator="item" array="sliderProds"> &mvt:item:name; - &mvt:item:desc;<br> </mvt:foreach> <hr></hr> <mvt:assign name="g.new" value="l.settings:sliderProds" /> ##&mvt:global:new;## <!-- <hr></hr> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:sliderProds), ',', '<br>'))" /> -->
 

Basket #28881

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1481045647
View "Basket #28881"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Basket #27067

 arrays
Delete all characters from string except characters that you define.
Created: 1477411980
View "Basket #27067"
<mvt:assign name="l.settings:yearsfits[1]" value="'1954'" /> <mvt:assign name="l.settings:yearsfits[2]" value="'1955'" /> <mvt:assign name="l.settings:yearsfits[3]" value="'1956'" /> <mvt:assign name="l.settings:yearsfits[4]" value="'1957'" /> <mvt:assign name="l.settings:yearsfits[5]" value="'1958'" /> <mvt:assign name="l.settings:yearsfits[6]" value="'1959'" /> <mvt:assign name="l.settings:yearsfits[7]" value="'1960'" /> <mvt:assign name="l.settings:yearsfits[8]" value="'1961'" /> <mvt:assign name="l.settings:yearsfits[9]" value="'1962'" /> <mvt:assign name="l.settings:yearsfits[10]" value="'1963'" /> <mvt:assign name="l.settings:yearsfits[11]" value="'1964'" /> <mvt:assign name="l.settings:yearsfits[12]" value="'1965'" /> <mvt:assign name="l.settings:yearsfits[13]" value="'1966'" /> <mvt:assign name="l.settings:yearsfits[14]" value="'1967'" /> <mvt:assign name="l.settings:yearsfits[15]" value="'1968'" /> <mvt:assign name="l.settings:yearsfits[16]" value="'1969'" /> <mvt:assign name="l.settings:yearsfits[17]" value="'1970'" /> <mvt:assign name="l.settings:yearsfits[18]" value="'1971'" /> <mvt:assign name="l.settings:yearsfits[19]" value="'1972'" /> <mvt:assign name="l.settings:yearsfits[20]" value="'1973'" /> <mvt:assign name="l.settings:yearsfits[21]" value="'1974'" /> <mvt:assign name="l.settings:yearsfits[22]" value="'1975'" /> <mvt:assign name="l.settings:yearsfits[23]" value="'1976'" /> <mvt:assign name="l.settings:yearsfits[24]" value="'1977'" /> <mvt:assign name="l.settings:yearsfits[25]" value="'1954'" /> <mvt:assign name="l.settings:yearsfits[26]" value="'1955'" /> <mvt:assign name="l.settings:yearsfits[27]" value="'1956'" /> <mvt:assign name="l.settings:yearsfits[28]" value="'1957'" /> <mvt:assign name="l.settings:yearsfits[29]" value="'1958'" /> <mvt:assign name="l.settings:yearsfits[33]" value="'1962'" /> <mvt:assign name="l.settings:yearsfits[34]" value="'1963'" /> <mvt:assign name="l.settings:yearsfits[35]" value="'1964'" /> <mvt:assign name="l.settings:yearsfits[36]" value="'1965'" /> <mvt:assign name="l.settings:yearsfits[37]" value="'1966'" /> <mvt:assign name="l.settings:yearsfits[38]" value="'1967'" /> <mvt:assign name="l.settings:yearsfits[39]" value="'1968'" /> <mvt:assign name="l.settings:yearsfits[40]" value="'1969'" /> <mvt:assign name="l.settings:yearsfits[41]" value="'1970'" /> <mvt:assign name="l.settings:yearsfits[42]" value="'1971'" /> <mvt:assign name="l.settings:yearsfits[43]" value="'1972'" /> <mvt:assign name="l.settings:yearsfits[44]" value="'1973'" /> <mvt:assign name="l.settings:yearsfits[45]" value="'1974'" /> <mvt:assign name="l.settings:yearsfits[46]" value="'1975'" /> <mvt:assign name="l.settings:yearsfits[47]" value="'1976'" /> <mvt:assign name="l.settings:yearsfits[48]" value="'1977'" /> <mvt:foreach iterator="item" array="yearsfits"> &mvt:item;<br> </mvt:foreach>
 

Basket #25800

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1474566170
View "Basket #25800"
<mvt:assign name="g.foo" value="'bar'" /> &mvte:global:foo; <mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[3]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[3]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> <mvt:assign name="l.settings:example:states[2]:abbr" value=" 'MD' " /> <mvt:assign name="l.settings:example:states[2]:name" value=" 'Maryland' " /> &mvt:example:states[3]:abbr; - &mvt:example:states[3]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Basket #24013

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1470756520
View "Basket #24013"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> <mvt:assign name="g.example" value="'test'" /> &mvt:global:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> Array loop: <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> &mvt:item; <---sdflkjsdf <br /> miva array elements:<mvt:eval expr="miva_array_elements(l.settings:example:list)" /> <hr /> <mvt:assign name="l.settings:success" value="glosub( 'this is a test', 'test', 'testing' )" /> &mvt:success; <hr /> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> <mvt:assign name="l.settings:example:states[1]:otherstuff[1]:test" value="'tesasfsdgfwert'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Basket #18598

 arrays
Created: 1466181914
View "Basket #18598"
<MvCOMMENT> Create a dataset <MvCOMMENT> <MvASSIGN NAME="g.names" VALUE="January,February,March,April,May,June,July,August,September,October,November,December"> <MvASSIGN NAME="g.abbr" VALUE="Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec"> <MvCOMMENT> Convert the data to an array structure. <MvCOMMENT> <MvASSIGN NAME="g.posn" VALUE="{ 1 }"> <MvWHILE EXPR="{ g.posn LE 12 }"> <MvASSIGN NAME="g.month" INDEX="{ g.posn }" MEMBER="name" VALUE="{ gettoken(g.names,',',g.posn) }"> <MvASSIGN NAME="g.month" INDEX="{ g.posn }" MEMBER="abbr" VALUE="{ gettoken(g.abbr,',',g.posn) }"> <MvASSIGN NAME="g.month" INDEX="{ g.posn }" MEMBER="first_date" VALUE="{ g.month[g.posn]:name $ ' 1, ' $ s.tm_year }"> <MvCOMMENT> Next item <MvCOMMENT> <MvASSIGN NAME="g.posn" VALUE="{ g.posn + 1 }"> </MvWHILE>
 

Arrays

 arrays
Created: 1440022007
View "Arrays"
<mvt:assign name="l.settings:list[1]" value="'Bananas'" /> <mvt:assign name="l.settings:list[2]" value="'Milk'" /> <mvt:assign name="l.settings:list[3]" value="'Bread'" /> <mvt:assign name="l.settings:list[4]" value="'Cereal'" /> <mvt:foreach iterator="item" array="list"> &mvt:item;<br> </mvt:foreach> <h5>Debug</h5> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:list), ',', '<br>'))" /> <hr> <mvt:assign name="l.settings:states[1]:abbr" value="'CA'" /> <mvt:assign name="l.settings:states[1]:name" value="'California'" /> <mvt:assign name="l.settings:states[2]:abbr" value="'FL'" /> <mvt:assign name="l.settings:states[2]:name" value="'Florida'" /> <mvt:foreach iterator="state" array="states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <h5>Debug</h5> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:states), ',', '<br>'))" />
 

Basket #4590

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1438905859
View "Basket #4590"
<mvt:assign name="g.foo" value="'bar'" /> <mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[1]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[2]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[3]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[4]" value="'Cereal'" /> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> &mvt:example:list[4];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Basket #895

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1429558536
View "Basket #895"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Snippet: 1429558522 - v1

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1429558522
View "Snippet: 1429558522 - v1"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Basket #454

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1427408414
View "Basket #454"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[1];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Basket #447

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1427395253
View "Basket #447"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />
 

Structures

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1427238160
View "Structures"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo;<br> &mvt:example:bar;<br> <hr> <mvt:assign name="l.settings:example:list[0]" value="'Bananas'" /> <mvt:assign name="l.settings:example:list[1]" value="'Milk'" /> <mvt:assign name="l.settings:example:list[2]" value="'Bread'" /> <mvt:assign name="l.settings:example:list[3]" value="'Cereal'" /> &mvt:example:list[0];<br> &mvt:example:list[1];<br> &mvt:example:list[2];<br> &mvt:example:list[3];<br> <br> <mvt:foreach iterator="item" array="example:list"> &mvt:item;<br> </mvt:foreach> <hr> <mvt:assign name="l.settings:example:states[0]:abbr" value="'CA'" /> <mvt:assign name="l.settings:example:states[0]:name" value="'California'" /> <mvt:assign name="l.settings:example:states[1]:abbr" value="'FL'" /> <mvt:assign name="l.settings:example:states[1]:name" value="'Florida'" /> &mvt:example:states[0]:abbr; - &mvt:example:states[0]:name;<br> &mvt:example:states[1]:abbr; - &mvt:example:states[1]:name;<br> <br> <mvt:foreach iterator="state" array="example:states"> &mvt:state:abbr; - &mvt:state:name;<br> </mvt:foreach> <hr> <h4>Print Example Structure:</h4> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:example), ',', '<br>'))" />