User-Defined SPLASH Functions

Use the SPLASH programming language to write user-defined functions in either global or local declare blocks.

Syntax

DECLARE
	returnType funcName (argType argName,...) {
		
		//function body

		return value;
	}
END;

Usage

Function names are case-sensitive.

Functions defined at the module or project level can be used anywhere in the expressions inside that module or project. However, functions defined within streams, windows, and FLEX operators are visible only in the scope of those elements.

Functions are defined and there is no need to declare a function. For example, function f2 can reference f1 before f1 is defined.