From: phil rosenstein Date: 2012-04-12T13:29:22+09:00 Subject: Re: conditionally use greater than or less than I ended up doing something like this: def threshold_compare(value1, value2, operation) if operation == '>=' value1 >= value2 elsif operation == '<=' value1 <= value2 end end -- Posted via http://www.ruby-forum.com/.