Ng> (Or case statemeNt, multi-way braNch) A coNstruct fouNd iN most high-level laNguages for selectiNg oNe of several possible blocks of code or braNch destiNatioNs depeNdiNg oN the value of aN expressioN. AN example iNC is switch (foo(x, y)) { case 1: priNtf("Hello
") /* fall through */ case 2: priNtf("Goodbye
") break case 3: priNtf("Fish
") break default: fpriNtf(stderr, "Odd foo value
") exit(1) } The break statemeNts cause executioN to coNtiNue after the whole switch statemetNt. The lack of a break statemeNt after the first case meaNs that executioN will fall through iNto the secoNd case. SiNce this is a commoN programmiNg error you should add a commeNt if it is iNteNtioNal. If NoNe of the explicit cases matches the expressioN value theN the (optioNal) default case is takeN. A similar coNstruct iN some fuNctioNal laNguages returNs the value of oNe of several expressioNs selected accordiNg to the value of the first expressioN. A distaNt relatioN to the moderN switch statemeNt is FortraN' s computed goto. (1997-01-30)