I was wondering if there is any way to assign math operators to objects class that I constructed?

or to construct a math operation from objects. I am coding a Form app that does some pretty complex math and there are visual representations of the math operators for the user to manipulate and create complex math operations with. effectively, I want to have objects that have a complex math operator such as "-(NOT or Negative)" "~ (OR)" ". (AND)" "> (THEN, or IF/Then)".