Return

Takes a variable number of parameters.

Description:

The Return command may be used in Private Methods, Public Methods, or Remote Methods if desired, as its internal workings are such that: it Resets the Output Query (not necessarily the Work Query), Creates a new Field named Return, assigns the Parameter value to it, and performs an Exit. It is expected that future version of Moxie will have Public Functions and Remote Functions. Therefore using the Return command in them and standardizing on a single Field named Return as the function result conduit is encouraged.

Executing Return will return the value assigned to it to the assignment Field. If it requires solving, it must be inside of () like other solved values in Moxie. If it is a simple value that does not require solving, it then should not be in (). Return will also Exit the Function at the same time.

When using the Return command from within a Function, you may return multiple values simultaneously.