Help with automations for multiple dependent tasks

I’m trying to set up an automation related to dependencies.

Use case:

Task A and Task B both have to be completed before task C can begin.

There is a pre-made template automation that I can set so that when task A is marked as “done” it will mark task C as done… but there’s no apparent way to set the automation to only mark task C as done if BOTH A and B are done first.

It’s good that Monday lets you set multiple dependencies for a task, but if you can’t incorporate that setting into any of your workflows or automations, then the value is greatly diminished.

What is the work around to achieve this functionality? My team has a lot of cross-dependencies and this seems like it should be a priority in the tool for encouraging collaboration, but I’m struggling to find a way to achieve this.