Is this piece of code correct?

Hi Dominique,

One error I see is with your if statements. You have if($Type=“Something” // rather than more correctly if($Type==“Something”

if($Type==“Livre”) {$Color=“poppy”};
if($Type==“Article”) {$Color=“red”};
if($Type==“Communication”) {$Color=“green”};

Is more correct
Tom

1 Like