How to set OAS/Gold line format (or slot) to have color based on another slot - multiple colors

2 examples:

COND(SLOT([Red STAT Slot]) EQ 'stat' OR SLOT([Red STAT Slot]) EQ 'statvent', 'Red', 'Black')

will make this slot red if the slot named [Red STAT Slot] eq 'statvent'

COND(SLOT([Note Order Slot]) EQ 'Y', 'Blue', COND(SLOT([Note Order Slot]) EQ 'N', 'ForestGreen', 'Black'))

will make slot Blue if [Note Order Slot] eq Y
will make it ForestGreen if
[Note Order Slot]) eq N
Else it will be Black