3. WHILE...WEND - Loop Structure

 

 

SET:i:0                             // int i = 0;

        WHILE:i:<:3

          PLAY:ACTION:SIT             //"sit and stand" for 3 times.

          WAIT

          PLAY:ACTION:STAND

          WAIT

          ADD:i:1                         // i += 1;

        WEND

        END

 

 

Description:

 

This program will let AIBO sit and stand for 3 times.