You cannot run several options because you do not have a loop to run them. There are two ways to fix it - the fast, easy one and the "refactor so your life is much easier in the future" one.
The Easy Way- In your Go value change event, replace the outer loop with a FOR loop.
- Now move the code which creates the boolean array outside the loop.
- Delete the FOR loop which used to search the boolean array before you moved that code outside the main FOR loop.
- Wire the iteration terminal (the "i") of the main FOR loop into the Variant To Data node to replace the search value.
- Wrap a CASE statement around all the code remaining in the main FOR loop.
- Wire the boolean array from outside the FOR loop to the selector terminal of the CASE statement inside the FOR loop. Autoindexing will take care of the type conversion from boolean array to boolean.
At this point, you should be good to go. The main FOR loop now loops once for each of your booleans. If the boolean is FALSE, the FALSE case of the CASE structure executes and nothing happens. If the boolean is TRUE, your original logic is executed. A FALSE iteration occurs in microseconds, so it is not a performance issue.
Note that you can get rid of the Occurrences you are using by wiring the error wire from the first frame into the error wire input of the second. You can then delete the frames as well. Data flow is a wonderful thing, once you get the hang of it.
Refactor So Your Life Is Much Easier In The FutureThis sort of application is easier to maintain if it is implemented using an interrupt driven, queued state machine. I have attached an example of this type of architecture (LV7.1, so you should be able to open it). In this architecture, your main loop is WHILE loop containing a CASE selector. The CASE is selected by the output of a Queue. The default case is an event structure waiting for GUI input. When an event occurs, it places one or move items on the Queue (your tests, in this case). These items are then executed in the order they are placed on the queue. When there are no more items to be processed, the code returns to the default state and waits for more GUI input.
The example should make it much clearer than any words. Good luck. Let us know if you need more help.