Originally posted by Rick Wilson
View Post
Under examples.
Although I just realized... this isn't actually Miva's site is it?
Bill
<!--#include file="/external.html"--> This can be replaced by: <MvDO FILE="/external.html">
<MvDo file="news.html">
MvDO: Unable to open 'news.html': File is either corrupt or not a valid compiled Miva Script file
<!--#include file="/external.html"--> This can be replaced by: <MvDO FILE="/external.html">
<MvDo file="news.html">
MvDO: Unable to open 'news.html': File is either corrupt or not a valid compiled Miva Script file
<MvASSIGN NAME="l.variable" VALUE="{[ './functions.mvc' ].write('Item #' $ [ './functions.mvc' ].cleanup(l.this_item) $ ' added')}">
<MvASSIGN NAME = "l.string" VALUE = "The quick brown fox jumped over the Lazy dog. Meanwhile, grumpy wizards make toxic brew for the evil Queen and Jack."> <MvASSIGN NAME = "l.keyword_array" INDEX = "1" VALUE = "{ 'quick' }"> <MvASSIGN NAME = "l.keyword_array" INDEX = "2" VALUE = "{ 'orange' }"> <MvASSIGN NAME = "l.keyword_array" INDEX = "3" VALUE = "{ 'queen' }"> <MvASSIGN NAME = "l.keyword_array" INDEX = "4" VALUE = "{ 'Queen' }"> <MvASSIGN NAME = "l.return" VALUE = "{ keyword_in( l.keyword_array, l.string ) }"> <MvFOREACH ITERATOR = "l.words" ARRAY = "l.keyword_array" INDEX = "l.pos"> <br />Did "<MvEVAL EXPR = "{ l.words }">" show up? <MvEVAL EXPR = "{ l.return[ l.pos ] }"> </MvFOREACH>
Structure before probe: <MvEVAL EXPR = "{ miva_member_exists( g.test1, 'one' ) }"><br /> <MvIF EXPR = "{ g.test1:one }">This is impossible</MvIF> Structure after probe: <MvEVAL EXPR = "{ miva_member_exists( g.test1, 'one' ) }"><br /> Array before probe: <MvEVAL EXPR = "{ miva_element_exists( g.test2, 1 ) }"><br /> <MvIF EXPR = "{ g.test2[ 1 ] }">This is impossible</MvIF> Array after probe: <MvEVAL EXPR = "{ miva_element_exists( g.test2, 1 ) }"><br />
Structure before probe: 0 Structure after probe: 0 Array before probe: 0 Array after probe: 0
Structure before probe: 0 Structure after probe: 1 Array before probe: 0 Array after probe: 1
<MvIF EXPR = "{ ISNULL g.test1 }">There is no g.test1 <MvELSE>There is a g.test1 </MvIF><br /> <MvIF EXPR = "{ ISNULL g.test1 }">NOW there is a g.test1 <MvELSE>g.test1 is an illusion </MvIF><br /> <MvIF EXPR = "{ ISNULL g.test2:one }">There is no g.test2:one <MvELSE>There is a g.test2:one </MvIF><br /> <MvIF EXPR = "{ ISNULL g.test2:one }">NOW there is a g.test2:one <MvELSE>g.test2:one is an illusion </MvIF><br /> <MvIF EXPR = "{ ISNULL g.test3[1] }">There is no g.test3[1] <MvELSE>There is a g.test3[1] </MvIF><br /> <MvIF EXPR = "{ ISNULL g.test3[1] }">NOW there is a g.test3[1] <MvELSE>g.test3[1] is an illusion </MvIF><br />
There is no g.test1 NOW there is a g.test1 There is no g.test2:one NOW there is a g.test2:one There is no g.test3[1] NOW there is a g.test3[1]
Leave a comment: