Code: Select all
function childGroupExists theChildGroupName, theParentGroup
repeat with i = 1 to the number groups in theParentGroup
if the name of group i of theParentGroup is theChildGroupName then
return true
end if
end repeat
return false
end childGroupExists
... but "the number of groups" is not restricted to immediate children only, so the code iterates through all of the child and grandchild groups of theParentGroup.
Is there something like groupNames for groups instead of cards?
Thanks