Fix gtr and ltr functions

`gtr` and `ltr` functions weren't working because they were passing "hi" or "lo" rather than expected ">" or "<". Also declared `ltfn`.