How to make a nested if?

I need to make a conditional with several yes, from two different columns, could you help me?