isFunctionDefined()

Returns whether a specific function exists or not.

Synopsis

bool isFunctionDefined(string funcName);

Parameters

Parameter Description
funcName Name of the function

Return value

1 if function exists, otherwise 0.

Error

Description

Returns whether a specific function exists or not. The function can be used for CTRL-Lib functions as well as for CTRL functions. You can check the existence of a function before calling.

Example

main()
{
  if ( isFunctionDefined("isPanelOpen") )
  DebugN("The function ChildPanelOn is defined and can be
  called");
  else
  DebugN("The function is not defined and cannot be called");
}

Assignment

Miscellaneous functions

Availability

CTRL