I need to be able to manipulate variables like so.
Firstly find the variable and check what it is (in this case an operator * / + etc), and then reverse it. For example, the value of ~(5+9) is -14 and the value of ~(3-5) is 2.
How do I go about doing so?