| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (9 out of 16)

Control Switch


The Control Switch lets an inference value choose which path to send a control signal down. It is useful when you need to perform a sequence of control blocks until some condition is met.

The Control Switch block only passes values when it receives a new control signal; it does not pass values when the inference value changes.

The value of the side inference path (ip-in) determines where the control signal (cp-in) will go. This table shows on which output path the signal will go:


If the side input is
The left input is passed on the port labeled
.true
"T" (cp-out-1)
unknown
"U" (cp-out-2)
.false
"F" (cp-out-3)

Configuring

The Control Switch has no configurable attributes.

Example

For an example, see the example for "Control Counter".

See Also

For more information on how to use this block, see the sections below.

Click here for more information...
Basic Block Behavior

| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (9 out of 16)

Copyright © 1996, Gensym Corporation, Inc.