title: Can I use the Conditional Operators in a non-assignment situation in JAVA?
body: <p>In case of assignment the situation is simple,</p>
  
  <pre><code>result = testCondition ? value1 : value2;
  </code></pre>
  
  <p>But what if I want to use it instead of an if statement?
  for instance in a logging situation:</p>
  
  <pre><code>logger.shouldDebbug ? logger.log("logging") : (what to do if not?);
  </code></pre>
  
  <p>In the case I don't what to do anything in the case of false, can I still use this Operator?</p>