One more example. This is a little more complex as it has two while loops. I'll give you the loop example in plain english, then in KiXtart syntax.

Assume that you have a small glass and a large bottle of beer whose volume is an exact multiple of the glass volume.

 Code:
While there is any beer left in the bottle

   While there is room in the glass
      pour some beer into the glass
   Go back and check the glass

   Drink the beer. Lovely :)

Go back and check the bottle

Damn, no more beer :(


 Code:
While $iBeerInBottle > 0

   While $iBeerInGlass < $iGlassVolume
      $iBeerInBottle=$iBeerInBottle-1
      $iBeerInGlass=$iBeerInGlass+1
   Loop

   "Glug-glug-glug...Ahhhh!"+@CRLF   
   $iBeerInGlass=0

Loop

"Go to supermarket and buy more beer."+@CRLF