Changed comparison operators to compare r[A] and r[B], placing the result in r[C].