Calc: Trivial Background Color Switch

I need to change the background color of a cell based on a true/false value.

What should I do to do this, something like =IF(CONDITION, COLOR, COLOR2)?

Just use Condtional Formatting - here have already talked a lot about this, just use the search

If the cell is the result of a formula, formatting can be included in the formula, using STYLE.