I would define the conditions in if then else columns then point the rich text to the ITE columns.
Something like this: