1 2 3 4 5 | case WM_SYSKEYDOWN: case WM_SYSKEYUP: case WM_KEYDOWN: case WM_KEYUP: { .. |
1 2 3 4 | if (Message==WM_SYSKEYDOWN || Message==WM_SYSKEYUP || Message==WM_KEYDOWN || Message==WM_KEYUP) { ... // big block of code } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | switch (Var) { case Value1: Code1; break; case Value2: case Value3: case Value4: Code2; break; default: Code3; break; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | if (Var == Value1) { goto CaseA; } else if (Var == Value2 || Var == Value4 || Var == Value5) { goto CaseB; } else { goto CaseC; } CaseA: Code1; goto End; CaseB: Code2; goto End; CaseC: Code3; goto End; End: ... |