Browse All Fiddles


Basket #127971

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1526364373
View "Basket #127971"
<mvt:assign name="l.settings:example:foo" value="'bar'" /> <mvt:assign name="l.settings:example:bar" value="'baz'" /> &mvt:example:foo; &mvt:example:bar;
 

Basket #127911

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1526311553
View "Basket #127911"
<mvt:eval expr="1 * 0.10" />
 

Basket #127618

Created: 1526057316
View "Basket #127618"
<mvt:eval expr="substring( 'FooBar', 2, 10)" />
 

Basket #127616

Created: 1526057310
View "Basket #127616"
<mvt:eval expr="substring( 'FooBar', 2, -1)" />
 

Basket #127614

Created: 1526057299
View "Basket #127614"
<mvt:eval expr="substring( 'FooBar', 1, 10)" />
 

Basket #127612

Created: 1526057281
View "Basket #127612"
<mvt:eval expr="substring( 'FooBar', 1, -1)" />
 
View "Snippet: 1525995154 - v1"
Variable Defined as 0:<br> <mvt:assign name="g.test" value="0"/> <mvt:if expr="g.test EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test"> ISNULL</br> </mvt:if> <hr> Variable Defined as "Empty":<br> <mvt:assign name="g.test2" value="''"/> <mvt:if expr="g.test2 EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test2 EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test2"> ISNULL</br> </mvt:if> <hr> Variable is undefined:<br> <mvt:if expr="g.test3 EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test3 EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test3"> ISNULL</br> </mvt:if>
 

Basket #127403

Created: 1525995063
View "Basket #127403"
Variable Defined as 0:<br> <mvt:assign name="g.test" value="0"/> <mvt:if expr="g.test EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test"> ISNULL</br> </mvt:if> <hr> Variable Defined as "Empty":<br> <mvt:assign name="g.test2" value="''"/> <mvt:if expr="g.test2 EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test2 EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test2"> ISNULL</br> </mvt:if> <hr> Variable is undefined:<br> <mvt:if expr="g.test3 EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test3 EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test3"> ISNULL</br> </mvt:if>
 

Basket #127401

Created: 1525995006
View "Basket #127401"
Variable Defined as 0:<br> <mvt:assign name="g.test" value="0"/> <mvt:if expr="g.test EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test"> ISNULL</br> </mvt:if> <hr> Variable Defined as "Empty":<br> <mvt:assign name="g.test" value="''"/> <mvt:if expr="g.test EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test"> ISNULL</br> </mvt:if> <hr> Variable is undefined:<br> <mvt:if expr="g.test2 EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test2 EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test2"> ISNULL</br> </mvt:if>
 

Basket #127398

Created: 1525994630
View "Basket #127398"
<mvt:assign name="g.test" value="0"/> <mvt:if expr="g.test EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test"> ISNULL</br> </mvt:if> <hr> <mvt:if expr="g.test2 EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test2 EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test2"> ISNULL</br> </mvt:if>
 

Basket #127396

Created: 1525994594
View "Basket #127396"
<mvt:assign name="g.test" value="0"/> <mvt:if expr="g.test EQ 0"> IS 0</br> </mvt:if> <mvt:if expr="g.test EQ ''"> IS EMPTY</br> </mvt:if> <mvt:if expr="ISNULL g.test"> ISNULL</br> </mvt:if>
 

Basket #127394

Created: 1525994575
View "Basket #127394"
<mvt:assign name="g.test" value="0"/> <mvt:if expr="g.test EQ 0"> IS 0 </mvt:if> <mvt:if expr="g.test EQ ''"> IS EMPTY </mvt:if> <mvt:if expr="ISNULL g.test"> ISNULL </mvt:if>
 

Basket #127392

Created: 1525994543
View "Basket #127392"
<mvt:assign name="g.test" value="0"/> <mvt:if expr="g.test EQ ''"> IS EMPTY </mvt:if> <mvt:if expr="ISNULL g.test"> ISNULL </mvt:if>
 

Basket #127390

Created: 1525994519
View "Basket #127390"
<mvt:assign name="g.test" value="0"/> <mvt:if expr="g.test EQ ''"> HELLO </mvt:if>
 

Basket #127388

Created: 1525994510
View "Basket #127388"
<mvt:assign name="g.test" value="1"/> <mvt:if expr="g.test EQ ''"> HELLO </mvt:if>
 

Basket #127385

Created: 1525994500
View "Basket #127385"
<mvt:assign name="g.test" value="0"/> <mvt:if expr="g.test EQ ''"> HELLO </mvt:if>
 

Basket #125569

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1525880862
View "Basket #125569"
<mvt:assign name="g.test" value="'1|2|3|4'"/> <mvt:assign name="g.token" value="gettoken( g.test , '|' , 1 )"/> &mvt:global:token;
 

Basket #125567

[Video Tutorial](http://www.miva.com/videos/web_developers/structures) Structures are a lot like arrays.
Created: 1525880856
View "Basket #125567"
<mvt:assign name="g.test" value="'1|2|3|4'"/> <mvt:assign name="g.token" value="gettoken( g.test , '^' , 1 )"/> &mvt:global:token;
 

Basket #124983

Created: 1525729893
View "Basket #124983"
<mvt:comment>Current Local Time</mvt:comment> <mvt:assign name="g.curr_timezone_offset" value="'local'" /> <mvt:assign name="g.curr_timestamp" value="s.dyn_time_t - g.curr_timezone_offset" /> <mvt:assign name="g.curr_year" value="time_t_year( g.curr_timestamp, g.curr_timezone_offset )" /> <mvt:assign name="g.curr_month" value="padl(time_t_month( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_day" value="padl(time_t_dayofmonth( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_24hour" value="padl(time_t_hour( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_min" value="padl(time_t_min( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_sec" value="padl(time_t_sec( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_formatted_date" value="g.curr_month $ '-' $ g.curr_day $ '-' $ g.curr_year" /> &mvt:global:curr_formatted_date; <br> <mvt:assign name="g.curr_timestamp_unix" value="mktime_t( g.curr_year, g.curr_month, g.curr_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:curr_timestamp_unix; <br> <mvt:comment>Expiration Date</mvt:comment> <mvt:assign name="g.tester" value="'05/01/2018'" /> <mvt:assign name="g.split_count" value="miva_splitstring( g.tester, '/', g.exp_date, 'trim' )" /> <mvt:assign name="g.exp_year" value="g.exp_date[3]" /> <mvt:assign name="g.exp_month" value="g.exp_date[1]" /> <mvt:assign name="g.exp_day" value="g.exp_date[2]" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.exp_date), ',', '<br>'))" /> <br> <mvt:assign name="g.exp_timestamp_unix" value="mktime_t( g.exp_year, g.exp_month, g.exp_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:exp_timestamp_unix; <br> <mvt:if expr="g.curr_timestamp_unix GT g.exp_timestamp_unix "> Sorry this quote is expired <br> <mvt:else> This quote is good to go <br> </mvt:if>
 

Basket #124981

Created: 1525729832
View "Basket #124981"
<mvt:comment>Current Local Time</mvt:comment> <mvt:assign name="g.curr_timezone_offset" value="'local'" /> <mvt:assign name="g.curr_timestamp" value="s.dyn_time_t - g.curr_timezone_offset" /> <mvt:assign name="g.curr_year" value="time_t_year( g.curr_timestamp, g.curr_timezone_offset )" /> <mvt:assign name="g.curr_month" value="padl(time_t_month( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_day" value="padl(time_t_dayofmonth( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_24hour" value="padl(time_t_hour( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_min" value="padl(time_t_min( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_sec" value="padl(time_t_sec( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_formatted_date" value="g.curr_month $ '-' $ g.curr_day $ '-' $ g.curr_year" /> &mvt:global:curr_formatted_date; <br> <mvt:assign name="g.curr_timestamp_unix" value="mktime_t( g.curr_year, g.curr_month, g.curr_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:curr_timestamp_unix; <br> <mvt:comment>Expiration Date</mvt:comment> <mvt:assign name="g.tester" value="'05/18/2018'" /> <mvt:assign name="g.split_count" value="miva_splitstring( g.tester, '/', g.exp_date, 'trim' )" /> <mvt:assign name="g.exp_year" value="g.exp_date[3]" /> <mvt:assign name="g.exp_month" value="g.exp_date[1]" /> <mvt:assign name="g.exp_day" value="g.exp_date[2]" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.exp_date), ',', '<br>'))" /> <br> <mvt:assign name="g.exp_timestamp_unix" value="mktime_t( g.exp_year, g.exp_month, g.exp_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:exp_timestamp_unix; <br> <mvt:if expr="g.curr_timestamp_unix GT g.exp_timestamp_unix "> Sorry this quote is expired <br> <mvt:else> This quote is good to go <br> </mvt:if>
 

Basket #124979

Created: 1525729687
View "Basket #124979"
<mvt:comment>Current Local Time</mvt:comment> <mvt:assign name="g.curr_timezone_offset" value="'local'" /> <mvt:assign name="g.curr_timestamp" value="s.dyn_time_t - g.curr_timezone_offset" /> <mvt:assign name="g.curr_year" value="time_t_year( g.curr_timestamp, g.curr_timezone_offset )" /> <mvt:assign name="g.curr_month" value="padl(time_t_month( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_day" value="padl(time_t_dayofmonth( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_24hour" value="padl(time_t_hour( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_min" value="padl(time_t_min( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_sec" value="padl(time_t_sec( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_formatted_date" value="g.curr_month $ '-' $ g.curr_day $ '-' $ g.curr_year" /> &mvt:global:curr_formatted_date; <br> <mvt:assign name="g.curr_timestamp_unix" value="mktime_t( g.curr_year, g.curr_month, g.curr_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:curr_timestamp_unix; <br> <mvt:comment>Expiration Date</mvt:comment> <mvt:assign name="g.tester" value="'05/18/2018'" /> <mvt:assign name="g.split_count" value="miva_splitstring( g.tester, '/', g.exp_date, 'trim' )" /> <mvt:assign name="g.exp_year" value="g.exp_date[3]" /> <mvt:assign name="g.exp_month" value="g.exp_date[1]" /> <mvt:assign name="g.exp_day" value="g.exp_date[2]" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.exp_date), ',', '<br>'))" /> <br> <mvt:assign name="g.exp_timestamp_unix" value="mktime_t( g.exp_year, g.exp_month, g.exp_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:exp_timestamp_unix; <br> <mvt:if expr="g.exp_timestamp_unix GT g.curr_timestamp_unix"> Sorry this quote is expired <br> <mvt:else> This quote is good to go <br> </mvt:if>
 

Basket #124977

Created: 1525729655
View "Basket #124977"
<mvt:comment>Current Local Time</mvt:comment> <mvt:assign name="g.curr_timezone_offset" value="'local'" /> <mvt:assign name="g.curr_timestamp" value="s.dyn_time_t - g.curr_timezone_offset" /> <mvt:assign name="g.curr_year" value="time_t_year( g.curr_timestamp, g.curr_timezone_offset )" /> <mvt:assign name="g.curr_month" value="padl(time_t_month( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_day" value="padl(time_t_dayofmonth( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_24hour" value="padl(time_t_hour( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_min" value="padl(time_t_min( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_sec" value="padl(time_t_sec( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_formatted_date" value="g.curr_month $ '-' $ g.curr_day $ '-' $ g.curr_year" /> &mvt:global:curr_formatted_date; <br> <mvt:assign name="g.curr_timestamp_unix" value="mktime_t( g.curr_year, g.curr_month, g.curr_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:curr_timestamp_unix; <br> <mvt:comment>Expiration Date</mvt:comment> <mvt:assign name="g.tester" value="'05/18/2018'" /> <mvt:assign name="g.split_count" value="miva_splitstring( g.tester, '/', g.exp_date, 'trim' )" /> <mvt:assign name="g.exp_year" value="g.exp_date[3]" /> <mvt:assign name="g.exp_month" value="g.exp_date[1]" /> <mvt:assign name="g.exp_day" value="g.exp_date[2]" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.exp_date), ',', '<br>'))" /> <br> <mvt:assign name="g.exp_timestamp_unix" value="mktime_t( g.exp_year, g.exp_month, g.exp_day, g.curr_24hour, g.curr_min, g.curr_sec, g.curr_timezone_offset )" /> &mvt:global:exp_timestamp_unix; <br> <mvt:if expr="g.exp_timestamp_unix GT g.curr_timestamp_unix"> Sorry this quote is expired <br> <mvt:else> This quote is good to go <br> </mvt:if>
 

Basket #124975

Created: 1525729534
View "Basket #124975"
<mvt:comment>Current Local Time</mvt:comment> <mvt:assign name="g.curr_timezone_offset" value="'local'" /> <mvt:assign name="g.curr_timestamp" value="s.dyn_time_t - g.curr_timezone_offset" /> <mvt:assign name="g.curr_year" value="time_t_year( g.curr_timestamp, g.curr_timezone_offset )" /> <mvt:assign name="g.curr_month" value="padl(time_t_month( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_day" value="padl(time_t_dayofmonth( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_24hour" value="padl(time_t_hour( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_min" value="padl(time_t_min( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_sec" value="padl(time_t_sec( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_formatted_date" value="g.curr_month $ '-' $ g.curr_day $ '-' $ g.curr_year" /> &mvt:global:curr_formatted_date; <br> <mvt:assign name="g.curr_timestamp_unix" value="mktime_t( g.curr_year, g.curr_month, g.curr_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:curr_timestamp_unix; <br> <mvt:comment><mvt:assign name="g.exp_year" value="l.value" /> <mvt:assign name="g.exp_month" value="l.value" /> <mvt:assign name="g.exp_day" value="l.value" /></mvt:comment> <mvt:comment>Expiration Date</mvt:comment> <mvt:assign name="g.tester" value="'05/18/2018'" /> <mvt:assign name="g.split_count" value="miva_splitstring( g.tester, '/', g.exp_date, 'trim' )" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.exp_date), ',', '<br>'))" /> <br> <mvt:assign name="g.exp_timestamp_unix" value="mktime_t( g.exp_date[3], g.exp_date[1], g.exp[2], g.curr_24hour, g.curr_min, g.curr_sec, g.curr_timezone_offset )" /> &mvt:global:exp_timestamp_unix; <br> <mvt:if expr="g.exp_timestamp_unix GT g.curr_timestamp_unix"> Sorry this quote is expired <br> <mvt:else> This quote is good to go <br> </mvt:if>
 

Basket #124972

Created: 1525729485
View "Basket #124972"
<mvt:comment>Current Local Time</mvt:comment> <mvt:assign name="g.curr_timezone_offset" value="'local'" /> <mvt:assign name="g.curr_timestamp" value="s.dyn_time_t - g.curr_timezone_offset" /> <mvt:assign name="g.curr_year" value="time_t_year( g.curr_timestamp, g.curr_timezone_offset )" /> <mvt:assign name="g.curr_month" value="padl(time_t_month( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_day" value="padl(time_t_dayofmonth( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_24hour" value="padl(time_t_hour( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_min" value="padl(time_t_min( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_sec" value="padl(time_t_sec( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_formatted_date" value="g.curr_month $ '-' $ g.curr_day $ '-' $ g.curr_year" /> &mvt:global:curr_formatted_date; <br> <mvt:assign name="g.curr_timestamp_unix" value="mktime_t( g.curr_year, g.curr_month, g.curr_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:curr_timestamp_unix; <br> <mvt:comment><mvt:assign name="g.exp_year" value="l.value" /> <mvt:assign name="g.exp_month" value="l.value" /> <mvt:assign name="g.exp_day" value="l.value" /></mvt:comment> <mvt:comment>Expiration Date</mvt:comment> <mvt:assign name="g.tester" value="'05/18/2018'" /> <mvt:assign name="g.split_count" value="miva_splitstring( g.tester, '/', g.exp_date, 'trim' )" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.exp_date), ',', '<br>'))" /> <mvt:assign name="g.exp_timestamp_unix" value="mktime_t( g.exp_date[3], g.exp_date[1], g.exp[2], g.curr_24hour, g.curr_min, g.curr_sec, g.curr_timezone_offset )" /> &mvt:global:exp_timestamp_unix; <br> <mvt:if expr="g.exp_timestamp_unix GT g.curr_timestamp_unix"> Sorry this quote is expired <br> <mvt:else> This quote is good to go <br> </mvt:if>
 

Basket #124966

Created: 1525727459
View "Basket #124966"
<mvt:comment>Current Local Time</mvt:comment> <mvt:assign name="g.curr_timezone_offset" value="'local'" /> <mvt:assign name="g.curr_timestamp" value="s.dyn_time_t - g.curr_timezone_offset" /> <mvt:assign name="g.curr_year" value="time_t_year( g.curr_timestamp, g.curr_timezone_offset )" /> <mvt:assign name="g.curr_month" value="padl(time_t_month( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_day" value="padl(time_t_dayofmonth( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_24hour" value="padl(time_t_hour( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_min" value="padl(time_t_min( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_sec" value="padl(time_t_sec( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_formatted_date" value="g.curr_month $ '-' $ g.curr_day $ '-' $ g.curr_year" /> &mvt:global:curr_formatted_date; <br> <mvt:assign name="g.curr_timestamp_unix" value="mktime_t( g.curr_year, g.curr_month, g.curr_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:curr_timestamp_unix; <br> <mvt:comment><mvt:assign name="g.exp_year" value="l.value" /> <mvt:assign name="g.exp_month" value="l.value" /> <mvt:assign name="g.exp_day" value="l.value" /></mvt:comment> <mvt:comment>Expiration Date</mvt:comment> <mvt:assign name="g.tester" value="'05/18/2018'" /> <mvt:assign name="g.split_count" value="miva_splitstring( g.tester, '/', g.exp_date, 'trim' )" /> <mvt:comment> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.exp_date), ',', '<br>'))" /> </mvt:comment> <mvt:assign name="g.exp_timestamp_unix" value="mktime_t( g.exp_date[3], g.exp_date[1], g.exp[2], g.curr_24hour, g.curr_min, g.curr_sec, g.timezone )" /> &mvt:global:exp_timestamp_unix; <br> <mvt:if expr="g.exp_timestamp_unix GT g.curr_timestamp_unix"> Sorry this quote is expired <mvt:else> This quote is good to go </mvt:if> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.exp_date), ',', '<br>'))" />
 

Basket #124964

Created: 1525727413
View "Basket #124964"
<mvt:comment>Current Local Time</mvt:comment> <mvt:assign name="g.curr_timezone_offset" value="'local'" /> <mvt:assign name="g.curr_timestamp" value="s.dyn_time_t - g.curr_timezone_offset" /> <mvt:assign name="g.curr_year" value="time_t_year( g.curr_timestamp, g.curr_timezone_offset )" /> <mvt:assign name="g.curr_month" value="padl(time_t_month( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_day" value="padl(time_t_dayofmonth( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_24hour" value="padl(time_t_hour( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_min" value="padl(time_t_min( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_sec" value="padl(time_t_sec( g.curr_timestamp, g.curr_timezone_offset ), 2, 0)" /> <mvt:assign name="g.curr_formatted_date" value="g.curr_month $ '-' $ g.curr_day $ '-' $ g.curr_year" /> &mvt:global:curr_formatted_date; <br> <mvt:assign name="g.curr_timestamp_unix" value="mktime_t( g.curr_year, g.curr_month, g.curr_day, g.curr_24hour, g.curr_min, g.curr_sec, local )" /> &mvt:global:curr_timestamp_unix; <br> <mvt:comment><mvt:assign name="g.exp_year" value="l.value" /> <mvt:assign name="g.exp_month" value="l.value" /> <mvt:assign name="g.exp_day" value="l.value" /></mvt:comment> <mvt:comment>Expiration Date</mvt:comment> <mvt:assign name="g.tester" value="'05/18/2018'" /> <mvt:assign name="g.split_count" value="miva_splitstring( g.tester, '/', g.exp_date, 'trim' )" /> <mvt:comment> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.exp_date), ',', '<br>'))" /> </mvt:comment> <mvt:assign name="g.exp_timestamp_unix" value="mktime_t( g.exp_date[3], g.exp_date[1], g.exp[2], g.curr_24hour, g.curr_min, g.curr_sec, g.timezone )" /> &mvt:global:exp_timestamp_unix; <br> <mvt:if expr="g.exp_timestamp_unix GT g.curr_timestamp_unix"> Sorry this quote is expired <mvt:else> This quote is good to go </mvt:if>
 

Basket #124960

Created: 1525726115
View "Basket #124960"
<mvt:assign name="g.tester" value="'05/18/2108'" /> <mvt:assign name="g.get_token" value="gettoken( g.tester, '/', 2 )" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.get_token), ',', '<br>'))" />
 

Basket #124958

Created: 1525726087
View "Basket #124958"
<mvt:assign name="g.tester" value="'05/18/2108'" /> <mvt:assign name="g.get_token" value="gettoken( g.tester, '/', 1 )" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.get_token), ',', '<br>'))" />
 

Basket #124956

Created: 1525726075
View "Basket #124956"
<mvt:assign name="g.tester" value="'05/18/2108'" /> <mvt:assign name="g.get_token" value="gettoken( g.tester, '/', 1 )" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.get_tokens), ',', '<br>'))" />
 

Basket #124954

Created: 1525726050
View "Basket #124954"
<mvt:assign name="g.tester" value="'05/18/2108'" /> <mvt:assign name="g.get_token" value="gettoken( g.tester, '/', 1 )" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(g.get_tokens), ',', '<br>'))" />