The Cross-Platform xBase.
3.4 Fork
SWITCH
supportThis example demonstrates how to use the SWITCH
to execute one or more blocks of statements.
$ hbrun switch.prg --- FOUND: 1 --- FOUND: 1 --- FOUND: 1 FOUND: 2 other --- OTHERWISE --- NOT FOUND: running OTHER --- Nested FOUND: 22In CASE 1 2 ---
To learn how to build/run this example, see this page.