result

The result variable is available within function blocks. It represents the function's return value.

Usage

You can assign a value to result using a set statement, as shown below:

set result to <value> ;

Example

This example calculates a total by multiplying price and quantity:

set result to price * quantity ;