# [R], 43 bytes

<!-- language-all: lang-r -->

    function(v)rank(c(11,0,10,1:4*0,2:4)[v])[1]

[Try it online!][TIO-jjkc2yrv]

[R]: https://www.r-project.org/
[TIO-jjkc2yrv]: https://tio.run/##Zc9BCsIwEAXQfU/xoZtEgiS1BSnGi4iLmKZYtIlkotevsWoRhFkM/zMPJk69nvq7t2kInj14NP7CLFNKSKHytPVKiqqt@eFx5Ad1nEpUGJ3xhL2A@qy7vK4baF0U/etaoOYcJfYAM9aBbIiOoBRuYfCJcv/N5BL1Q6SEgYAxN0hn40HOBt/xWd0KbGZ1l9Xt977K6eLLH@XqiP6RRqCaEa3BGhjf5X9OIZ3fBiSfng "R – Try It Online"

The function returns `2` for `'greater than'`, `1` for `'less than'`, `1.5` for `'equals'`