Command.once() Method

The Command.once() activates a command once. A call to this function is essentially a call to begin() and end().

Syntax

command.once()

Parameters

This function has no parameters.

Return value

No value is returned (i.e.,undefined).

Example

> ident = simulator.findCommand("sim/transponder/transponder_ident")
Command{ name: "sim/transponder/transponder_ident" }
> ident.once()
undefined

References