- Theme Engine
- Design Principles
- Templates
- EVML Reference
- Output
- Comments
- Operators
- Statements and Declarations
- Built-in Functions
- Built-in Objects
- Account
- Address
- Array
- Boolean
- Branch
- Cart
- CartLine
- Category
- CategoryCollection
- CategoryFilter
- CategoryFilterCollection
- CategoryFilterOption
- CategorySearch
- Collection
- Color
- Contact
- Currency
- Date
- Discount
- Dom
- Event
- EventCollection
- EventSlot
- Image
- Layout
- Locale
- Money
- Number
- Object
- Page
- PageCollection
- PageSearch
- PageSharer
- Pagination
- Postage
- Price
- PriceDiscount
- Product
- ProductCollection
- ProductCustomisation
- ProductDownload
- ProductMedia
- ProductMediaFrame
- ProductPrice
- ProductSearch
- ProductSpecification
- ProductSpecificationValue
- ProductVariation
- ProductVariationOption
- RecentlyViewed
- RegExp
- Request
- Review
- ReviewCollection
- Search
- SearchCollection
- SearchResult
- String
- Tag
- Template
- Url
- Website
- EV Tags
- CSS Pre-processor
- Ajax API
continue
The EVML continue statement stops execution of the current iteration of a for
,
for..in
,
for..of
, or
while
statement, and continues execution of the next iteration.
Syntax
continue;
Unlike the break
statement, continue
does not terminate
execution of the loop entirely. In a for
, for..in
or for..of
loop, continue
jumps
to the updated expression. Whereas in a while
loop, it jumps back to the condition.
<?ev
for(var i=0; i<5; i++){
if(i==3){
continue;
}
print(i);
}
?>
Will print 0, 1, 2 and 4.