|
Returns program flow to the top of the
ExampleThis examples imports movies from a text file and appends the data to an array. The <MvIMPORCONTINUE> tag is used to skip importing movies made before the year 2000. Example:<MvIMPORT FILE="movies.dat" FIELDS="l.title,l.director,l.year" DELIMITER="|">
<MvIF EXPR="{ l.year LT 2000 }">
<MvIMPORCONTINUE>
</MvIF>
<MvASSIGN NAME="l.index" VALUE="{ miva_array_max(l.movies) + 1 }">
<MvASSIGN NAME="l.movies" INDEX="{ l.index }" MEMBER="title" VALUE="{ l.title }">
<MvASSIGN NAME="l.movies" INDEX="{ l.index }" MEMBER="director" VALUE="{ l.director }">
<MvASSIGN NAME="l.movies" INDEX="{ l.index }" MEMBER="year" VALUE="{ l.year }">
</MvIMPORT>
|