Material - change based on color

I finally solved it. - This helped understanding what the note does: Conditional statement in material - Rendering - Unreal Engine Forums