August 2010
Intermediate to advanced
288 pages
13h 21m
English
Using a data wire to supply the input to a Switch block gives you a lot of flexibility in the types of decisions your programs can make. Using a Sensor block, you can perform the comparison outside the Switch block, allowing you to make more complex decisions than the Switch block alone supports.
Using a number or text value as input, you can have the Switch block choose from more than two possible alternatives. Passing data between the blocks within the Switch block and those before or after allows you to easily customize each alternative action or make decisions that affect the rest of the program.