Logic Hook Needed: Set Account Assigned User to a related Module everytime a record is saved/edited in that related module.

Hello Devs,

I would like to implmenet a Logic Hooks outside the BPM, which will be executed every time a record is saved in Module B. Module B is related to module A in a 1:n connection. So module A can have multiple records in module B.

Module A has an assigned user and this user should also be set as the assigned user in the record in module B whenever a record has changes in module B. But this ONLY if in module B in the dropdown field "program" the value "gold" is filled in.

I don't have a plan how to realize this and need your help.
I am looking forward to your ideas.

Many thanks in advance!

Kind regards