I was just wondering if this was possible because i started using ternary operators to reduce lines of code and i am loving it.
if (x==y) { z += x; } els
you should do this by using parentheses like this:
(x==y)?(z+=x):((x==z)?(z+=y):(z+=1))