Branching
This structure is very like if, but there are more than 2 possible choices. Example:
(fieldColor is defined) branch on fieldColor if "blue" write "This is sea" if "green" write "This is part of a ship" if "brown" write "Here a ship was hit" if "red" write "Here some sea was hit"
Concept last updated: 24/09 2003.
Relations
|
Other sources
- Diverse opgaver - Selektion
- Eksempler på programmerings-sprog - Udgrening
- Start på Javascript 1.5; Jes Nyhus; 1.udgave (obl.) - 6. Betingede sætninger