title: How to use AND operator logic in Or Operator i cant solve it in interview?
body: <p>suppose i have a code like this,</p>
  
  <pre><code>(var1==true &amp;&amp; var2==true)
  {
      somemethod();
  }
  </code></pre>
  
  <p>suppose we have a language in which we do not have &amp;&amp; operator it is not exsis in the language then what changing in the condition to make it like (var1==true || var2==true)
  and work like and operator that when both condion true then it enter in the loop and do not use any code like using if condition for both condition to make it work 
    hopes for your suggestions thanks in advance </p>