DADiSP Worksheet Functions > Function Categories > Query Functions > ISFUNC

 

ISFUNC

Purpose:

Returns 1 if input is a loaded SPL function, else 0.

Syntax:

ISFUNC("funcname")

"funcname"

-

A string, the SPL function name to test.

Returns:

An integer 1 or 0.

Example:

zeros(1, 1);

isfunc("zeros");

 

returns 1 since ZEROS.SPL automatically loaded upon invocation.

Remarks:

See WHICH to return the path to the SPL source file.

See Also:

ISVARIABLE

WHICH