Contents Previous Next Subchapters

Defining Functions
Syntax function name()block
See Also function arguments , local functions , multiple return values

Description
Defines the function name, which executes the commands in block .

Tutorial
A function is a set of commands that can be executed by entering the function name. Entering
     clear
     function f() begin
          print "Hello World!"
     end
will define the function f. If you continue this example by entering
     f
O-Matrix will respond
     Hello World!