Vision Sensor example program request

I can’t figure out how to program the vision sensor to work when it recognizes a color where an action gets performed. anybody have something like the program or just a text file I could use?

If you are using VexCode Pro, it includes a lot of very basic example programs that demonstrate each sensor individually. You could start by taking a look at File->Examples->Detecting Objects(Vision)