From: Dave Aronson Date: 2012-02-07T04:52:10+09:00 Subject: Re: NOT executing if statement So what's the problem? Are you trying to say that the function isn't doing *anything*, not even giving you back "Invalid Math Operation"? I can believe that it is at least giving you that, rather than doing the proper math. Try checking the exact value of mathop. Put quotes around it. I think you'll discover you need one more operation. This shouldn't be too big a challenge to sink your teeth into. ;-) -Dave -- Dave Aronson:  Available Cleared Ruby on Rails Freelancer (NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com