Difference between revisions of "ISInterface:IsCommand"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
*bool IsCommand(char *Name) | *bool IsCommand(char *Name) | ||
== Purpose == | == Purpose == | ||
− | Check to see if | + | Check to see if '''Name''' is a command |
== Usage == | == Usage == | ||
=== Parameters === | === Parameters === | ||
Line 14: | Line 14: | ||
if (pISInterface->IsCommand("echo")) | if (pISInterface->IsCommand("echo")) | ||
{ | { | ||
− | pISInterface->ExecuteCommand(" | + | pISInterface->ExecuteCommand("echo hi"); |
} | } | ||
Latest revision as of 02:01, 2 September 2005
Syntax
- bool IsCommand(char *Name)
Purpose
Check to see if Name is a command
Usage
Parameters
- char *Name
- [in] Name to check
Return Value
- bool
- Returns true if it is a command, false if it is not
Examples
- Example code
if (pISInterface->IsCommand("echo")) { pISInterface->ExecuteCommand("echo hi"); }