RPTools

Personal tools
From MapToolDoc

isFunctionDefined

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

Contents

isFunctionDefined() Function

Introduced in version 1.3b51

Checks if a function has been defined using defineFunction(). Returns true(1) if it has, or false(0) if it has not. Returns '2' if the entered function is a built-in MapTool function rather than a user-defined function.

Usage

  1. isFunctionDefined(name)

Examples

  1. [r: isFunctionDefined("fizzlegwip")]

Returns 0.

  1. [h: defineFunction("myNewFunction", "myMacro@token")]
  1. [r: isFunctionDefined("myNewFunction")]

Returns 1.

  1. [r: isFunctionDefined("input")]

Returns 2.

See Also

defineFunction(), arg(), argCount()