I have an if statement that has 4 elements in it. To trigger the alert, I need the first two elements to return true, and one or more of the remaining two elements to be false,
But I get a parsing error saying: Invalid left-hand side in assignment expression.
Any ideas where I am going wrong?
if (
    checkPieceInColumn('P', 'd', currentPosition) &&
    checkPieceInColumn('P', 'e', currentPosition) &&
    (checkPieceInColumn('p', 'd', currentPosition)=false) ||
      (checkPieceInColumn('p', 'e', currentPosition)=false)
  ) {
    alert('condition triggered');
  }
 
    