Sfairadora

  • Reference Guide

is_command_enabled

is_command_enabled(cmd)
is_command_enabled(cmd, data)
Determines, whether the command specified is currently available relative to the context in which the function is called. If the function is not associated with a dispel, the function is evaluated in the context of the document main window.
The return value is of the type BoolTRUE, when the command can be executed, and FALSE otherwise.

Parameters

cmd
The name of the command (the type String).
data
An optional parameter to the command.