GetElementParent: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:


===Returns===
===Returns===
Returns an the parent as an ''element'', ''false'' if ''theElement'' is invalid, or is the root node.
This returns the parent as an ''element''. It returns ''false'' if ''theElement'' is invalid, or is the root node.


==Example==  
==Example==  

Revision as of 14:41, 22 August 2006

This function is used to determine the parent of an element.

Syntax

element getElementParent ( element theElement )  

Required Arguments

  • theElement: The child of the parent element you want returned.

Returns

This returns the parent as an element. It returns false if theElement is invalid, or is the root node.

Example

--Add example here...

See Also