remove last entered node()

This function can be used to remove the last instance of a entered node a during the construction of the target tree. See example for details.

The function cannot be used on node a itself.

The return value of the function in case of success is true. If an incorrect node name is specified, an error will occur.

Parameters


Parameter

Description

a

The name of the node. If nothing is specified, the parent node is used.

Example


images/download/attachments/137313058/1663-version-1-modificationdate-1691387376299-api-v2.png


Let's assume that in the mapping the node some_node is created once in the target tree and in a loop the node loop_node is created four times.

On field remove, in the second iteration of the loop, we execute the function described here, with the value loop_node for parameter a. Alternatively, we could choose to remove node some_node here.

However, we could not execute the function on node loop_node itself.