• Reference Guide

Function Result

An Enki function returns the result of the expression used to define it. In the common case of sequence of semicolon separated expressions, it is the value of the last expression. However, also the return statement can be used:
return value
The return statement immediately terminates the function execution and returns the value specified as its parameter. If no value is specified, the value NONE is returned.
It is not necessary to use the return statement at the end of a function. It suffices to write the value to be returned.