Element: command.before { }

Type

callback

Description

The "before event" command procedure for the command. When eventing is on, this procedure will be executed before the command itself is executed. At system startup for all commands this element has no value.

When this procedure is executed, the command name and the command parameters which invoked the event are passed to it as string parameters.

The command skip may be used as the last command within the procedure to suppress the execution of the command being evented, thus making the before procedure a replace procedure.

This procedure should not be called explicitly.

Syntax

command.before (<string>,<string>)

Example

open.before = {
    args name=string, data=string
    tell <'Command:', name>
    tell <'Data:', data>
}

See Also

Commands:

skip

Identifiers:

eventing (numeric)