extensionExists

This function checks if a specific extension exists.

extensionExists(id, version) → returns boolean

This function requires Lucee 5.3 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

id string
Required

UUID of the Extension.

version string

Version of the Extension.

Compatibility

Lucee:

Version 5.3+ This function was added as part of the Admin Interface improvement.

Examples
Sample code invoking the extensionExists function

This example shows a very basic usage of the function to determine if a function exists.

dump(extensionExists("99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6"));

This example was created by Michael Born to verify that a specific version of an Extension exists.

dump(extensionExists("99A4EF8D-F2FD-40C8-8FB8C2E67A4EEEB6","7.2.2.jre8"));

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub