Browse All Fiddles


Basket #141832

Created: 1529342118
View "Basket #141832"
<mvt:assign name="l.settings:string" value="'U.S.P.S. Priority Mail&reg;'" /> <mvt:assign name="l.settings:formatted" value="decodeentities( l.settings:string )" /> &mvt:formatted;
 
View "Snippet: 1529341164 - v1"
// System Variable Example // s.remote_addr - IP Address of Client &mvt:system:remote_addr; <- Does not print IP Adress: <mvt:eval expr="s.remote_addr" /> // s.http_referer - Referring page URL <mvt:assign name="g.referer" value="s.http_referer" /> Referer: &mvt:global:referer;
 
View "Snippet: 1529340945 - v1"
// Local Variables l.settings:product:formatted_price l.settings:store:name l.settings:category:name L.settings:product:thumbnail
 
View "Snippet: 1529340764 - v1"
// Global Variable g.Screen g.Store_Code g.Product_Code // Local Variable l.name
 
View "Snippet: 1529340200 - v1"
//Standard encoding <mvt:assign name="g.no_encoding" value="'This is not encoded'" /> Output: &mvt:global:no_encoding; //Entity Encoding <mvt:assign name="g.myvariable" value="'<script> alert (\"oh no\")</script>'" /> Output: &mvte:global:myvariable; //Attribute Encoding <mvt:assign name="g.attribute_encoded" value="'This is attribute, encoded'" /> Output: &mvta:global:attribute_encoded;
 
View "Snippet: 1529339833 - v2"
// Entity &mvt:product:code; // Variable l.settings:product:code // This condition will not work <mvt:if expr="&mvt:product:code; EQ 'test' "> //This does not work. Compile Error </mvt:if> // This condition will work <mvt:if expr="l.settings:product:code EQ 'test' "> //This does work! </mvt:if> // This will output to the page Welcome to &mvt:store:name;! // This will not output to the page Welcome to l.settings:store:name;
 

Basket #141436

Created: 1529017682
View "Basket #141436"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjT'" /> <mvt:assign name="l.code_length" value="len_var( l.settings:code )" /> <mvt:assign name="l.settings:last_char" value="toupper( substring_var( l.settings:code, l.code_length, 1 ) )" /> <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:clean_code" value="substring( l.settings:code, 1, ( l.code_length - 1 ) )" /> <mvt:else> <mvt:assign name="l.settings:clean_code" value="l.settings:code" /> </mvt:if> &mvt:clean_code;
 

Basket #141434

Created: 1529017662
View "Basket #141434"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.code_length" value="len_var( l.settings:code )" /> <mvt:assign name="l.settings:last_char" value="toupper( substring_var( l.settings:code, l.code_length, 1 ) )" /> <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:clean_code" value="substring( l.settings:code, 1, ( l.code_length - 1 ) )" /> <mvt:else> <mvt:assign name="l.settings:clean_code" value="l.settings:code" /> </mvt:if> &mvt:clean_code;
 

Basket #141432

Created: 1529017654
View "Basket #141432"
``` <mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.code_length" value="len_var( l.settings:code )" /> <mvt:assign name="l.settings:last_char" value="toupper( substring_var( l.settings:code, l.code_length, 1 ) )" /> <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:clean_code" value="substring( l.settings:code, 1, ( l.code_length - 1 ) )" /> <mvt:else> <mvt:assign name="l.settings:clean_code" value="l.settings:code" /> </mvt:if> &mvt:clean_code;
 

Basket #141430

Created: 1529016427
View "Basket #141430"
<mvt:assign name="l.people[1]" value="'Rick'" /> <mvt:assign name="l.people[2]" value="'Philp'" /> <mvt:assign name="l.people[3]" value="'Nathan'" /> <mvt:assign name="l.people[4]" value="'Russ'" /> <mvt:assign name="l.people[5]" value="'Wayne'" /> <mvt:assign name="l.settings:people" value="l.people" /> <mvt:assign name="l.settings:null" value="miva_array_copy( l.settings:people , 1, 3 , l.settings:topten, 1 )" /> <!-- This function is used for debugging--> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:topten ), ',', ','))" /> <br></br> <mvt:eval expr="miva_joinstring( l.settings:topten, ',' , insensitive )" />
 

Basket #141428

Created: 1529016412
View "Basket #141428"
<mvt:assign name="l.people[1]" value="'Rick'" /> <mvt:assign name="l.people[2]" value="'Philp'" /> <mvt:assign name="l.people[3]" value="'Nathan'" /> <mvt:assign name="l.people[4]" value="'Russ'" /> <mvt:assign name="l.people[5]" value="'Wayne'" /> <mvt:assign name="l.settings:people" value="l.people" /> <mvt:assign name="l.settings:null" value="miva_array_copy( l.settings:people , 1, 3 , l.settings:topten, 1 )" /> <!-- This function is used for debugging--> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:topten ), ',', ','))" /> <br></br> <mvt:eval expr="miva_joinstring( l.settings:people, ',' , insensitive )" />
 

Basket #141426

Created: 1529016394
View "Basket #141426"
<mvt:assign name="l.people[1]" value="'Rick'" /> <mvt:assign name="l.people[2]" value="'Philp'" /> <mvt:assign name="l.people[3]" value="'Nathan'" /> <mvt:assign name="l.people[4]" value="'Russ'" /> <mvt:assign name="l.people[5]" value="'Wayne'" /> <mvt:assign name="l.settings:people" value="l.people" /> <mvt:assign name="l.settings:null" value="miva_array_copy( l.settings:people , 1, 3 , l.settings:topten, 1 )" /> <!-- This function is used for debugging--> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:topten ), ',', ','))" /> <mvt:eval expr="miva_joinstring( l.settings:people, ',' , insensitive )" />
 

Basket #141424

Created: 1529016153
View "Basket #141424"
<mvt:assign name="l.people[1]" value="'Rick'" /> <mvt:assign name="l.people[2]" value="'Philp'" /> <mvt:assign name="l.people[3]" value="'Nathan'" /> <mvt:assign name="l.people[4]" value="'Russ'" /> <mvt:assign name="l.people[5]" value="'Wayne'" /> <mvt:assign name="l.settings:people" value="l.people" /> <mvt:assign name="l.settings:null" value="miva_array_copy( l.settings:people , 1, 3 , l.settings:topten, 1 )" /> <!-- This function is used for debugging--> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:topten ), ',', ','))" />
 

Basket #141422

Created: 1529015755
View "Basket #141422"
<mvt:assign name="l.people[1]" value="'Rick'" /> <mvt:assign name="l.people[2]" value="'Philp'" /> <mvt:assign name="l.people[3]" value="'Nathan'" /> <mvt:assign name="l.people[4]" value="'Russ'" /> <mvt:assign name="l.people[5]" value="'Wayne'" /> <mvt:assign name="l.settings:people" value="l.people" /> <mvt:assign name="l.settings:null" value="miva_array_copy( l.settings:people , 1, 3 , l.settings:topten, 1 )" /> <!-- This function is used for debugging--> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:topten ), ',', '<br>'))" />
 

Basket #141420

Created: 1529015741
View "Basket #141420"
<mvt:assign name="l.people[1]" value="'Rick'" /> <mvt:assign name="l.people[2]" value="'Philp'" /> <mvt:assign name="l.people[3]" value="'Nathan'" /> <mvt:assign name="l.people[4]" value="'Russ'" /> <mvt:assign name="l.people[5]" value="'Wayne'" /> <mvt:assign name="l.settings:people" value="l.people" /> <mvt:assign name="l.settings:null" value="miva_array_copy( l.settings:people , 1, 10 , l.settings:topten, 1 )" /> <!-- This function is used for debugging--> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:topten ), ',', '<br>'))" />
 

Basket #141416

Created: 1529013310
View "Basket #141416"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.code_length" value="len_var( l.settings:code )" /> <mvt:assign name="l.settings:last_char" value="toupper( substring_var( l.settings:code, l.code_length, 1 ) )" /> <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:clean_code" value="substring( l.settings:code, 1, ( l.code_length - 1 ) )" /> <mvt:else> <mvt:assign name="l.settings:clean_code" value="l.settings:code" /> </mvt:if> &mvt:clean_code;
 

Basket #141414

Created: 1529013289
View "Basket #141414"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.code_length" value="len_var( l.settings:code ) - 1" /> <mvt:assign name="l.settings:last_char" value="toupper( substring_var( l.settings:code, l.code_length, 1 ) )" /> <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:clean_code" value="substring( l.settings:code, 1, l.code_length )" /> <mvt:else> <mvt:assign name="l.settings:clean_code" value="l.settings:code" /> </mvt:if> &mvt:clean_code;
 

Basket #141412

Created: 1529013252
View "Basket #141412"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.settings:last_char" value="toupper( substring_var( l.settings:code, len_var( l.settings:code ), 1 ) )" /> <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:clean_code" value="substring( l.settings:code, 1, len_var( l.settings:code ) - 1 )" /> <mvt:else> <mvt:assign name="l.settings:clean_code" value="l.settings:code" /> </mvt:if> &mvt:clean_code;
 

Basket #141409

Created: 1529013052
View "Basket #141409"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.settings:length" value="len( l.settings:code )" /> &mvt:length; <mvt:assign name="l.settings:last_char" value="substring( l.settings:code, (l.settings:length-1), 1 )" /> &mvt:last_char; <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:code" value="substring( l.settings:code, 1, (l.settings:length-1) )" /> <mvt:else> <mvt:assign name="l.settings:clean_code" value="l.settings:code" /> </mvt:if> &mvt:clean_code;
 

Basket #141407

Created: 1529013026
View "Basket #141407"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.settings:length" value="len( l.settings:code )" /> &mvt:length; <mvt:assign name="l.settings:last_char" value="substring( l.settings:code, (l.settings:length-1), 1 )" /> &mvt:last_char; <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:code" value="substring( l.settings:code, 1, (l.settings:length-1) )" /> </mvt:if> &mvt:code;
 

Basket #141405

Created: 1529013011
View "Basket #141405"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.settings:length" value="len( l.settings:code )" /> &mvt:length; <mvt:assign name="l.settings:last_char" value="substring( l.settings:code, (l.settings:length-1), 1 )" /> &mvt:last_char; <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:code" value="substring( l.settings:code, 1, (l.settings:length-1) )" /> </mvt:if> &mvt:code;
 

Basket #141402

Created: 1529012440
View "Basket #141402"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjT'" /> <mvt:assign name="l.settings:length" value="len( l.settings:code )" /> &mvt:length; <mvt:assign name="l.settings:last_char" value="substring( l.settings:code, (l.settings:length-1), 1 )" /> &mvt:last_char; <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:clean_code" value="substring( l.settings:code, 1, (l.settings:length-1) )" /> <mvt:else> <mvt:assign name="l.settings:clean_code" value="l.settings:code" /> </mvt:if> &mvt:clean_code;
 

Basket #141400

Created: 1529012432
View "Basket #141400"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.settings:length" value="len( l.settings:code )" /> &mvt:length; <mvt:assign name="l.settings:last_char" value="substring( l.settings:code, (l.settings:length-1), 1 )" /> &mvt:last_char; <mvt:if expr="l.settings:last_char EQ 'R'"> <mvt:assign name="l.settings:clean_code" value="substring( l.settings:code, 1, (l.settings:length-1) )" /> <mvt:else> <mvt:assign name="l.settings:clean_code" value="l.settings:code" /> </mvt:if> &mvt:clean_code;
 

Basket #141398

Created: 1529012312
View "Basket #141398"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.settings:length" value="len( l.settings:code )" /> &mvt:length; <mvt:assign name="l.settings:last_char" value="substring( l.settings:code, (l.settings:length), 1 )" /> &mvt:last_char;
 

Basket #141396

Created: 1529012300
View "Basket #141396"
<mvt:assign name="l.settings:code" value="'123-asdfwer-sldfjR'" /> <mvt:assign name="l.settings:length" value="len( l.settings:code )" /> &mvt:length; <mvt:assign name="l.settings:last_char" value="substring( l.settings:code, (l.settings:length-1), 1 )" /> &mvt:last_char;
 

Basket #141394

Created: 1529011383
View "Basket #141394"
<mvt:assign name="g.list" value=" 'apples' " /> <mvt:assign name="g.first" value="gettoken(g.list, '' , 1)" /> &mvt:global:first;
 

Basket #141392

Created: 1529011370
View "Basket #141392"
<mvt:assign name="g.list" value=" 'apples,oranges,bananas,grapes' " /> <mvt:assign name="g.first" value="gettoken(g.list, ',' , 1)" /> &mvt:global:first;
 

Basket #141390

Created: 1529010684
View "Basket #141390"
<mvt:assign name="g.test" value="'test'" /> <mvt:assign name="g.result" value="padr(g.test,2,'test')" /> &mvte:global:result;
 

Basket #141388

Created: 1529010677
View "Basket #141388"
<mvt:assign name="g.test" value="'test'" /> <mvt:assign name="g.result" value="padr(g.test,2,'0')" /> &mvte:global:result;