nuttx-apps/examples/bastest/tests/test41.bas

10 lines
107 B
QBasic

function f(c)
print "f running"
if (c) then f=42 : exit function
f=43
end function
print f(0)
print f(1)