Ok the Syntax for the IF() formula is as follows:
Apply that syntax to A2 in your sheet as in: =IF("testing 1",1,2)
If statements can BE NESTED. So you could test for a false as so:
=If("testing 1",1,IF("Testing 2",2,0))
NOW format the cell to change under CONDITIONAL FORMATTING!
I have said it once, I will say it again. IT!