The Branch Block routes messages to different parts of an algorithm based on the Boolean formula in the Branch Block when triggered by an incoming discrete event message. If the formula evaluates to TRUE, the block routes the discrete event message to its Yes output port; otherwise, it sends the message through its No output port.
Note Though both the Branch Block and the State Block look alike, they are fundamentally different. While the State Block waits until one of the internalized Boolean statements turns TRUE to output a message, the Branch Block immediately directs the incoming message either through the yes or the no output port.
To change default block settings, double-click the block to open the Block Editor.
|Name||Name to display beneath the block on the ADL canvas|
|BodyColor||Background color of the block|
Equation used to calculate the value of the block
If not yet defined, the field displays a Click to edit formula link that opens the Formula Builder.
|Description||Optional text to explain how the block is used|