From Br Wiki
Comments and Examples
If a user-defined function uses more than one statement, it must be terminated by an FnEnd statement.
- 1.) A user-defined function definition may appear anywhere in the program, either before or after the function is invoked. Unlike subroutines, functions are bypassed when encountered in normal program flow.
- 2.) The FnEnd statement is considered descriptive and does not affect the value of the function.
- 3.) If a function should return a value, it must be assigned using a LET statement before FnEnd is encountered. The LET must appear in the following format:LET FNname=expression
- 4.) FnEnd must be the last statement on a line.
See also: Def