Determining a rule to define a color

Thank you Tom. I found the thread where I asked a similar question about colors, but I’m not getting the result I’m looking for with this code:

$Color=;
if($Type=="Journal de recherche") {$Prototype="Journal de recherche"};