Difference between revisions of "Switch Icon Properties"
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {| style="margin:auto; text-align:center;" | |
− | [[File: | + | |- |
+ | |[[File:Btn_Switch.gif|border]] | ||
+ | | width="50px" |→ | ||
+ | |[[File:Gen_Switch_Flowchart_Icon_01.png]] | ||
+ | |width="50px" |→ | ||
+ | |[[File:Gen_Switch_Icon_Properties_01.png]] | ||
+ | |} | ||
+ | |||
+ | Switch icons are similar to [[Decision Icon Properties|decision icons]] only instead of two possible outcome branches (Yes, No) there are up to eleven. | ||
− | |||
They are particularly useful for tailoring your program to react in different ways based on an input variable. | They are particularly useful for tailoring your program to react in different ways based on an input variable. | ||
Line 18: | Line 25: | ||
'''Variables Arrow''' | '''Variables Arrow''' | ||
− | Clicking on the down arrow brings up the variables dialog window allowing you to select an existing variable or to create a new one. | + | Clicking on the down arrow brings up the variables dialog window allowing you to select an existing variable or to [[Creating Variables|create a new one]]. |
'''Case options''' | '''Case options''' | ||
− | Up to ten branches can be defined for the switch icon. The switch branches are enabled by ticking the tick boxes next to the values. The value in the case box is the value that is used to trigger that particular branch of the switch icon. If none of the values match the input parameter variable then the default branch of the switch case is used. | + | Up to ten branches can be defined for the switch icon. The switch branches are enabled by ticking the tick boxes next to the values. |
+ | |||
+ | The value in the case box is the value that is used to trigger that particular branch of the switch icon. If none of the values match the input parameter variable then the default branch of the switch case is used. | ||
+ | |||
+ | Case values need to be contestants/literals i.e values that cannot be modified | ||
+ | Examples include '''5 'H' 0x23'''. | ||
+ | |||
+ | ====Video instructions==== | ||
+ | |||
+ | See the [http://www.youtube.com/watch?v=Op-l1YntjqY&list=PLQDWBb7bxuCgg6aJgPJcfXBMzZdLILceQ Switch] video to learn how to use the Switch icon to create various paths with different outcomes which are executed depending on the value of a variable. |
Latest revision as of 10:19, 22 March 2023
![]() |
→ | ![]() |
→ | ![]() |
Switch icons are similar to decision icons only instead of two possible outcome branches (Yes, No) there are up to eleven.
They are particularly useful for tailoring your program to react in different ways based on an input variable.
Display Name
The name of the icon that appears on the flowchart.
Switch
This is the input parameter variable that is used to determine the branch of the switch that will be executed at run time.
Variables Arrow
Clicking on the down arrow brings up the variables dialog window allowing you to select an existing variable or to create a new one.
Case options
Up to ten branches can be defined for the switch icon. The switch branches are enabled by ticking the tick boxes next to the values.
The value in the case box is the value that is used to trigger that particular branch of the switch icon. If none of the values match the input parameter variable then the default branch of the switch case is used.
Case values need to be contestants/literals i.e values that cannot be modified Examples include 5 'H' 0x23.
Video instructions
See the Switch video to learn how to use the Switch icon to create various paths with different outcomes which are executed depending on the value of a variable.