Declares a user-defined function.
FUNCTION
function_name [ ( arguments ) ] [ STATIC
]
…
function_name = expression
…
END FUNCTION
FUNCTION Min% (a AS INTEGER, b AS INTEGER)
IF (a < b) THEN
Min% = a
ELSE
Min% = b
END IF
END FUNCTION
PRINT "Min of 5 and 3 is"; Min%(5, 3)