Color Sensor on DoBot Magician doesn't work


#1

When programmed like this:


it only prints the first color that has been displayed in the IF-ELSE IF- ELSE sequence and nothing else.

How to fix it so it reads and prints all colors?