View Single Post
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 08-06-2015, 04:37 PM

Quote:
Originally Posted by shaolinkidd View Post
ndx = 99
while ndx > 0
Do all your singing stuff
ndx=ndx-1
stuff to do after the song has ended.

When you get to 1 it will sing about one bottle of soda and decrement ndx to 0 at which point the while loop will exit
Note: for testing I would make ndx=3 and make sure everything works then change it to 99 before you submit it.

Mark


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote