Language basics / Functions |
A FUNCTION block defines a named procedure with a set of statements.
[PUBLIC|PRIVATE] FUNCTION function-name ( [ argument [,...]] ) [ declaration [...] ] [ statement [...] ] [ return-clause ] END FUNCTION
RETURN expression [,...]