# Disallow the insertion of a parent node into a child node

**URL:** <https://forum.universal-robots.com/t/disallow-the-insertion-of-a-parent-node-into-a-child-node/28809>\
**Category:** URCap Development\
**Created:** [June 5, 2023, 6:01am UTC](https://forum.universal-robots.com/t/disallow-the-insertion-of-a-parent-node-into-a-child-node/28809 "2023-06-05T06:01:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quentinwang](https://avatars.discourse-cdn.com/v4/letter/q/13edae/32.png) [@quentinwang](https://forum.universal-robots.com/u/quentinwang)\
**Post date:** [June 5, 2023, 6:01am UTC](https://forum.universal-robots.com/t/disallow-the-insertion-of-a-parent-node-into-a-child-node/28809/1 "2023-06-05T06:01:47Z")

</div>

I implemented a program node that allows the addition of child nodes. The functionality I want to implement is to disable adding a parent node to a child node. How to implement it ?

![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/1/107d4e7fe331fb93085001f942b1b0487be3ddf2.png)

Thanks
