, Good morning.
Since you did not mention what should be done if the two values are the same, the empty content is being placed.
Try to use:
=IF(A1>A2, C1+C2, IF(A1<A2, C1-C2, ""))
Please, tell us if it worked as desired.
I hope it helps.
Belo Horizonte, Brasil