
Cantata(Control)             Khoros              Cantata(Control)

     COUNT-LOOP EXAMPLES

     The following illustrate the use of the count-loop control
     glyph to construct counting loop structures within cantata
     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
                |  |count_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 ---
                |  |count_loop|      be executed each time    |
                |  ------------      through the loop         |
                |                                             |
                 ---------------------------------------------

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

Khoros                    Release: 1.0                          1

