DADiSP Worksheet Functions > Function Categories > Macro and Command File Functions > ISMACRO

 

ISMACRO

Purpose:

Determines whether a macro is defined.

Syntax:

ISMACRO("name")

"name"

-

A string, the macro name to test.

Returns:

A 1 if the macro exists as specified, else returns a 0.

Example:

#define square(S) S*S

 

ismacro("square") returns the value 1.

See Also:

ISVARIABLE