Code not working right

I haven't followed the whole flow but this does not look right
Code: [Select]

if ((optkey == '+')||(optkey == '-')||(optkey == 'x')||
(optkey == 1)||(optkey == '=')||(optkey == '*')){

I would expect
Code: [Select]

if ((optkey == '+')||(optkey == '-')||(optkey == 'x')||
(optkey == '1')||(optkey == '=')||(optkey == '*')){

I use 1 without the '' because the custom character at the beginning takes the variable 1.

By weird and messed up, I mean the answer is totally messed up. Here are some examples of what show up:
1+2+3=150
5x6=2862
9-1-1= -41
1+2รท9 =1

the answer for division always seems to be 1, and basic (blank - blank) subtraction works.
I am still experimenting though, so any answers or questions would be appreciated.