
Cantata(Control)             Khoros              Cantata(Control)

     WHILE-LOOP EXAMPLES

     Examples for using the while-loop control glyph to construct
     conditional while-loop structures within flow graphs.

     Loop with NO Feedback

     To construct a loop with NO feedback or to use the SAME
     input to the loop each time, connect the loop output back to
     the loop input.

                   ------------
          Input ---|=>      =>|----- Final output (optional)
       (optional)  |          |
                 --|=>      =>|--*--- Sequence of glyphs to
                |  |while_loop|  |    be executed each time
                |  ------------  |    through the loop
                |                |
                 ----------------

     Loop with Feedback

     To construct a loop that recycles a value produced within
     the loop to be used as input the next time through the loop,
     connect the desired glyph output back to the `Loop Input'.
     Note: Since all children of a loop glyph are executed BEFORE
     the loop is re-executed, feedback may be taken from any
     point within the loop sequence.

                   ------------
          Input ---|=>      =>|----- Final output (optional)
       (optional)  |          |
                 --|=>      =>|----- Sequence of glyphs to ---
                |  |while_loop|      be executed each time    |
                |  ------------      through the loop         |
                |                                             |
                 ---------------------------------------------

     Copyright 1991, University of New Mexico. All rights
     reserved.

Version: 0                 Release: 1                           1

