So far from I have been searching through the net, the statement always have if and else condition such as a ? b : c. I would like to know whether the if<
a ? b : c
if<
Yes you can do that actually (in JavaScript at least):
condition && x = true;
or (in JavaScript, and there might be a similar way to do this in Java):
void(condition && x = true)