Difference between revisions of "ISInterface:IsCommand"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
 
===Syntax===
 
===Syntax===
 
+
*bool IsCommand(char *Name)
 
== Purpose ==
 
== Purpose ==
 
+
Check to see if something is a command
 
== Usage ==
 
== Usage ==
 
=== Parameters ===
 
=== Parameters ===
 
+
*char *Name
 +
:'''[in]''' Name to check
 
=== Return Value ===
 
=== Return Value ===
 
+
*bool
 +
:Returns true if it is a command, false if it is not
 
== Examples ==
 
== Examples ==
 
+
;Example code
 +
if (pISInterface->IsCommand("echo"))
 +
  {
 +
    pISInterface->ExecuteCommand("echi hi");
 +
  }
  
 
== See Also ==
 
== See Also ==

Revision as of 01:55, 2 September 2005

Syntax

  • bool IsCommand(char *Name)

Purpose

Check to see if something 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("echi hi");
 }

See Also