
Cantata(Control)             Khoros              Cantata(Control)

     IF-THEN-ELSE CONTROL STRUCTURE

     The IF-THEN-ELSE structure is used to construct single or
     double alternative decision structures. The `Conditional
     Expression' must be entered in the space provided on the
     pane.  It may be any legal cantata expression (see documen-
     tation on `VARIABLES subform' for description of valid
     expressions) but must evaluate to either not 0 (TRUE) or 0
     (FALSE).

     EXECUTION

     When the glyph is executed, the `Conditional Expression' is
     evaluated.  If the `Conditional Expression' is evaluated as
     TRUE (anything greater than 0), then the `Input' data is
     passed to the `TRUE Output' and execution continues from
     there.

     If the `Conditional Expression' is evaluated as FALSE, then
     the `Input' data is passed to the `FALSE Output' and execu-
     tion continues from there.

     GLYPH USAGE

     Input   The input arrow corresponds to the input path to the
             decision structure.

     Output  The "upper" output arrow corresponds to the `TRUE
             Output'.  Glyphs to be executed if the `Conditional
             Expression' is TRUE are connected here.

             The "lower" output arrow corresponds to the `FALSE
             Output'.  Glyphs to be executed if the `Conditional
             Expression' is FALSE are connected here.  The `FALSE
             Output' connection is optional (see following exam-
             ples).

     MERGE GLYPH

     If there are glyphs to be executed in both cases, that is,
     AFTER the true or false path has been taken, a `MERGE' glyph
     should be used to join the two processing paths (see follow-
     ing examples).

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

Version: 0                 Release: 1                           1

