Skip to content

MvIMPORTCONTINUE#


Returns program flow to the top of the loop, performing the operations would normally occur at the bottom of the loop i.e. reading the next record.

Synatx
<MvIMPORTCONTINUE> 

Example#

This example imports movies from a text file and appends the data to an array. The <MvIMPORTCONTINUE> tag is used to skip importing movies made before the year 2000.

<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>