Modules

filter

 

Objects/Functions

module (N/xml)

SuiteScript 2.0

Node.hasChildNodes()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Node.hasChildNodes() for more information.

N/xml Module
Node.hasChildNodes()
Method Description: Returns true if the current node has child nodes or returns false if the current node does not have child nodes.
Returns: boolean
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/xml Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Node.hasChildNodes()

Example:

// Code Example 1
//Add additional code
//...
var hasChildren = parentNode[0].hasChildNodes()
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_453459411620.html