Insertion in heap

code:

can you please explain me line 52.
bascially how is it comparing ,

Its comparing on the basis of type of heap, if it is min heap , smaller will come and if it is max heap then larger of two values in parameter will come.