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
if((machine.isUsed == false) || (if(this.whoUseIt.includes(Session.get("loggedUser")))&&(machine.isUsed))){
I need to do this test to avoid a code duplication. If you have a better idea I'm still opened to it.