mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
16 lines
308 B
Text
16 lines
308 B
Text
// switch06
|
|
//
|
|
const CVAL := 4;
|
|
|
|
function foo( p )
|
|
case (p)
|
|
CVAL: return "[CVAL]";
|
|
5 : return "five";
|
|
"fourteen" : return 14;
|
|
"thirteen" : return 13;
|
|
default: return "NOTA: " + p;
|
|
endcase
|
|
endfunction
|
|
|
|
print( foo( CVAL ) );
|
|
print( foo( 1 ) );
|