Name
HavePlugin -- check if a plugin has been loaded (V6.0)
Synopsis
ok, obsolete = HavePlugin(name$[, version, revision])
Library
plugin

Function
This function can be used to check if the plugin specified in name$ has been loaded. In that case HavePlugin() will return True in the first return value. The second return value is obsolete since Hollywood 11 and will always be identical to the first return value so you can just ignore it. If the plugin has not been loaded, you can call LoadPlugin() on it to load it manually.

HavePlugin() accepts two optional arguments that can be used to check if the version of the plugin is at least the one specified by version and revision. If you pass these two optional arguments and the plugin has been loaded but is older than the specified version, False will be returned by this function.

Inputs
name$
plugin to check
version
optional: minimum required version number (defaults to 0 which means any version is acceptable)
revision
optional: minimum required revision number (defaults to 0 which means any revision is acceptable)
Results
ok
True if the specified version of the plugin has been loaded
obsolete
obsolete since Hollywood 11, it's now always identical to the first return value

Show TOC