Sfairadora

  • Reference Guide

execute_command

execute_command(cmd)
execute_command(cmd, data)
The function executes the command at the nearest superordinate dispel (including self) to the dispel from which is the function called. If the function is not associated with a dispel, the function is evaluated in the context of the document main window.

Parameters

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

Return Value

The return value is of the type Bool. TRUE is returned, when the command was executed. FALSE is returned, when there is no superordinate dispel implementing the command, and therefore the command was not executed.