Create new subitem when all subitems have the status of done

Hi! I am hoping for help with a use-case. I am trying to create new subitems based on the completion of other subitems and the items status. The below automation almost does it…

… but I need something more like “When all subitems have the status of [something], and the item’s status is [something], then change the item’s status to [something]”. This will allow me to create more subitems based on the item’s status.

Does anyone have any suggestions for workarounds?