Can someone help me to convert the below condition to Google Script?
I have Column A and Column B and I need to get result in Column C
Condition: