my question is do you understand what i need to do ?
Making the controller of a mixing machine my kids are not allowed to use ...
The code you post is only a snippet that does not compile, so it is hard to improve on that.
I don't know if the use of % characters in variables is acceptable,
I would prefer written version like percJagermeister as the % sign is the modulo operator in C++
The remark of PaulS is a valid one.
In C++ there is a difference in the "comparison equals ==" and the "assign equals ="
a statement
if (right = 13)
assigns the value 13 to the var right and after that it evaluates to true; so the block {} is executed.