RETURN

The RETURN command returns execution control to the calling procedure and may optionally take an argument containing an expression whose value is to be returned to the caller. The calling procedure then resumes execution with the next statement. Note that only user defined functions can effectively return a value.

 RETURN [(expression)]

where

[expression]  - is an expression whose value can be given to the
		user when control is returned.

A RETURN statement can be placed anywhere in a procedure.

Example:

 define function Square( x )
   return( x * x )
 enddefine

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.