title: If multiple conditions are met and if condition should be used
body: <p>I want to write code that will allow me to check condition only if we want to use that condition i.e</p>
  <pre><code>cond1 = True
  cond2 = False
  cond3 = True
  
  
  use_cond1 = False
  use_cond2 = True
  use_cond3 = True
  </code></pre>
  <p>and now current code is</p>
  <pre><code>if cond1 and cond2 and cond3:
      dosomething
  </code></pre>
  <p>I want to add check if we should use that condition for <code>cond1</code> would be <code>use_cond1</code>
  but if I write is as</p>
  <pre><code>if (cond1 and use_cond1) and cond2 and cond3:
      dosomething
  </code></pre>
  <p>entire condition will be <code>False</code> because we don't want to use cond1, is there an effective way to remove cond1 from if statement without writing each if statement manually? thank you</p>