polserver/testsuite/escript/func/func08.src
2015-12-19 02:31:08 +01:00

18 lines
281 B
Text

program f()
foo( 1, 2 );
endprogram
function foo( a, b )
if (a)
print( "a true" );
if (b)
print( "b true" );
else
print( "b false" );
endif
else
print( "a false" );
return;
endif
endfunction