
Cantata(Control)             Khoros              Cantata(Control)

     IF-THEN-ELSE EXAMPLES

     Examples for using the IF-THEN-ELSE glyph to construct sin-
     gle and double alternative decision structures within flow
     graphs.

     If-Then

     Example of a single alternative decision structure.  The
     execution of the flow graph will terminate at the IF_ELSE
     glyph if the expression is FALSE.

                       ---------     Sequence of glyphs to
           Input   ----|=>   =>|----  be executed if the
          sequence     |       |      condition is TRUE
                       |     =>|
                       |if-else|
                       ---------

     If-Then-Else

     Example of a double alternative decision structure with
     divergent paths.

                              --- Sequence of glyphs executed
                 ---------   |     if the condition is TRUE
        Input ---|=>   =>|---
                 |       |
                 |     =>|---
                 |if-else|   |
                 ---------    --- Sequence of glyphs executed
                                   if the condition is FALSE

     If-Then-Else

     Example of a double alternative decision structure with
     paths which rejoin (using the MERGE glyph).

                            -- Sequence for TRUE ---
                ---------  |                        |  ---------
        Input --|=>   =>|--                          --|=>   =>|
                |       |                              |       |
                |     =>|--                          --|=>     |
                |if-else|  |                        |  | merge |
                ---------   -- Sequence for FALSE --   ---------

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

Version: 0                 Release: 1                           1

