![](https://www.opentextbooks.org.hk/sites/opentextbooks/files/book_profile/cc_icon/by-sa.png)
In the Front Panel window, select a Boolean control and an output string.
![media/image2.png](http://www.opentextbooks.org.hk/system/files/resource/8/8091/8125/media/image2.png)
Arrange the diagram to look as in Case Selection G Diagram.
![media/image3.png](http://www.opentextbooks.org.hk/system/files/resource/8/8091/8125/media/image3.png)
In theTrue case, add a string constant containing True Case.
![media/image4.png](http://www.opentextbooks.org.hk/system/files/resource/8/8091/8125/media/image4.png)
To select the False case, click on the selector label down arrow and select False from the pop-up menu. You can also cycle through the cases by clicking the next (right) or previous (left) arrows.
Selecting False Case
In the False case, add a string constant containing False Case.
![media/image6.png](http://www.opentextbooks.org.hk/system/files/resource/8/8091/8125/media/image6.png)
Wire the string constant in the case structure to the output string terminal.
![media/image7.png](http://www.opentextbooks.org.hk/system/files/resource/8/8091/8125/media/image7.png)
Select theTrue case and wire the string constant to the case structure tunnel. Complete the diagram as shown in Completed Case Diagram.
![media/image8.png](http://www.opentextbooks.org.hk/system/files/resource/8/8091/8125/media/image8.png)
It is important to note that all instances in a case structure must be wired to enable data to flow from thecase structure.
In the Front Panel window, toggle the Boolean input control and run the program.
![media/image9.png](http://www.opentextbooks.org.hk/system/files/resource/8/8091/8125/media/image9.png)
![media/image10.png](http://www.opentextbooks.org.hk/system/files/resource/8/8091/8125/media/image10.png)
- 1486 reads