Testing for number of children in a parent child relationship
Looking for a simple way to for zero children in a parent child relationship for use in an if statement of a script. Can't seem to find the answer on my own.
Basically, if there are no children, the script will send the user directly to a "new" entry form. Otherwise it will send the user to a list of children so they can select one or add a new one from that list.