I need a cell formula that does this:

IF (foreground text color=whatever, action 1, action 2)

Is there a simple way that doesn't require screeds of code?

Alternatively, is there some other visible cell property I could change
(such as bold) to switch between actions?

Alan