title: assign and execute if/else conditions in single line
body: <p>How can I do that for example, <code>if</code> block checks if the condition is <code>true</code> or <code>false</code> and then execute action depends on that condition?</p>
  
  <p>like,</p>
  
  <pre><code>if (check true or false) 
           if false do action
           if true do action
  </code></pre>
  
  <p>Something like that do it all <strong>in the same line without blocks</strong>, it that possible ?</p>
  
  <p>Sorry for my bad English</p>
  
  <p>Thanks.</p>