How can I apply a conditional format that depends on the comparison with another value?

Hi,

Assume I have a table with integer data in column A, I also have integer data in column B and I want to apply green color to the number in B when the value in B is > than the value in A, red otherwise. How can I do this?

I know that I could add a column C,calculate A-B and if the value is >0 apply one format, if <0 apply another.
But I’m wondering if there’s a better way to directly apply a format without a “helper” column?

I should use formula in condition (see attach)condition B>A.ods