Notification texts go here English Typing-Tutor Buy Now!


Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

A loop is a sequence of instruction s that is continually repeated until a certain condition is reached. Typically, a certain process is done, such as getting an item of data and changing it, and then some condition is checked such as whether a counter has reached a prescribed number. In the Blogger Language , a loop is implemented using the tag <b:loop>. Most commonly used for printing out each post in a list of posts for a given page, or each comment, or each label, etc.

<b:loop> Syntax and Attributes


<b:loop index='STRING'        
    <!-- Repeat -->
  • values attribute value can be expression resulting an Array.
  • index with string value will give index number of each result starting from 0.
  • reverse mean to display result from backward.
  • reverse is not necessary. The default is not visible which mean 'false'.

<b:loop> Example


<b:loop index='i' values='data:posts' var='post'>
      <b:eval expr='data:i + 1' />. <data:post.title />
      <data:post.body />

Index with the name i, transform into data: and got <b:eval> tag, will evaluate with expression expr:'data:i + 1'. This will evaluate starting value 0 + 1.


1. This is Post Title


<b:loop values='["Bar","Baz","Qux"]' var='foo' >

The data Bar, Baz, and Qux will be printed as result by calling <data:foo/>

Other Tag

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.