IsChild

(Engine-Level Function)

Description: Identify Child Module. This function returns an indication of whether one module is a child module of another.
Returns: Boolean
Usage: Script Only.
Function Groups: Basic Module
Related to:  
Format: IsChild(Child, Parent)
Parameters:  
Child   
Required. Any expression that returns an object or module value.
Parent   
Required. Any expression that returns an object or module value.
Comments: This function returns true if Child is a descendant module of Parent, false if it isn't, and invalid if either, or both arguments are invalid or not module or object values.

Example:

  If ! Valid(IsMember);
  [
    IsMember = IsChild(ReadModule { Read module object value }, 
                       Driver { I/O driver module object value }); 
  ]

The variable isMember will be set to true if the object ReadModule is a child of (defined within) the object driver.