# IsParent

\<evalcmd> IsParent && int && Number of levels difference between the paths. && parent && path && Parent path to test. && child && path && Child path to test against parent. \</evalcmd>

Tests whether _parent_ is a parent of _child_.

If not, returns `0`. Otherwise, returns the number of levels that _parent_ is above _child_.

//[Example://](example://)

```
parentPath = "C:\Windows";
childPath = "C:\Windows\System32";
Output( IsParent(parentPath, childPath) );
--> 1
```

_See also:_\
[count](count)\
[parent](parent)
