Re: store bug
- Posted by jmduro Mar 09, 2021
- 896 views
This could be useful too:
function path_exists(object structure, sequence targetPath, sequence currentPath={}) if equal(currentPath, targetPath) then return 1 else integer digit = targetPath[length(currentPath)+1] if digit <= length(structure) then return path_exists(structure[digit], targetPath, currentPath&digit) else return 0 end if end if end function