You need to split up that statement and put your actual operators as strings: if(Operator != (+ || - || / || *))
Should be: if (Operator != "+" || Operator != "-" || Operator != "/" || Operator != "*")
However, if we look at this logically now, we can see that if it fits any one of those conditions, the others will be true and we will always enter the loop. Therefore we actually need to use the && symbol: