evaluate()

The evaluate() method is called once for each row of data in the SQL statement and returns a single value back to the database.

The formats of the arguments passed to the evaluate() method match those specified by the getArgs() method.

Example

The following evaluate() method returns the result of adding two numbers:
function evaluate(x, y)
    return x + y
end