All of the While loops are the same as PBP While...WEND where the closing brace is WEND.

Code:
   n=16;
   while(n--) {dosomething();}
Code:
n=16;
WHILE (n > 0)
gosub dosomething’
n = n - 1'
WEND