Is it possible, in any way, to pass comparison operators as variables to a function? I am looking at producing some convenience functions, for example (and I know this won\'
No, it's impossible.
You can use conditional operators instead, but it will be much,much better if you redesign your application to make such a dynamic comparison unnecessary.