How to code a "if X or If Y AND Z" in JavaScript? : <p>I'm trying to code something who could be say by "If X or if Y AND Z" but it looks like I made a mistake</p>

<pre><code>if((machine.isUsed == false) || (if(this.whoUseIt.includes(Session.get("loggedUser")))&amp;&amp;(machine.isUsed))){
</code></pre>

<p>I need to do this test to avoid a code duplication. If you have a better idea I'm still opened to it.</p>
