There was a post on here not too long ago with someone making a similar script.
Found it! here: Using IF Function and Color Override Element in View
It should be able to get you started at least.
There was a post on here not too long ago with someone making a similar script.
Found it! here: Using IF Function and Color Override Element in View
It should be able to get you started at least.