
Cantata(Control)             Khoros              Cantata(Control)

     SWITCH Control Structure

     The SWITCH is used to switch between two input data connec-
     tions.  When the glyph is executed, one of the two input
     filenames will be passed to the output filename, based on
     the evaluation of a conditional expression. If the condi-
     tional expression evaluates to a non-zero value, then the
     first input is sent to the output;  otherwise, the second
     input is sent to the output.  The rest of the network con-
     nected to the glyph's output connection will then be active
     for scheduling and dispatching.

     It is assumed that both of the two input connections will be
     valid before the evaluation is performed.  If desired, an
     optional trigger input may be connected so that the condi-
     tional expression is not evaluated and the appropriate input
     is not selected until another procedure or network is fin-
     ished executing.

     Special Thanks To:

     Mathew Yeates of NASA (JPL Division) for donating the SWITCH
     glyph to cantata.

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

Khoros                    Release: 1.0                          1

