IsCommand
From LoTROInterface Wiki
API Reference > Turbine.Shell.IsCommand()
Test if the specified name is a registered shell command.
Syntax
Lua | |
---|---|
function Shell.IsCommand(name); |
Parameters
name
Type: string
The name of the command to check for the existence of.
Returns
Type: boolean
True if the command is registered.
Remarks
This method can be used to see if a shell command already exists. Attempts to add a shell command when there is already a command registered will fail to register.