Please share a (dummy) doc so we don’t have to replicate your doc ourselves in order to help you.
I think nesting “If” formulas is not the way to go.
I also think your formulas fail because you are comparing apples and pears: “OK” is a text value in your formula, but it looks like you are trying to compare with a Coda “object” (I call the pill type things objects).
So either add .ToText() when you are trying to compare a pill with a text object, of, better, type @Ok to enter the OK pill in your formula.