I am trying to create a modifier that will cause a function to revert if a bool from an imported contract is = to true.
This is the modifier I am trying to make
modifier notCompleted() { require( exampleExternalContract.completed = false ); _; } This is the imported function and variable.
bool public completed; function complete() public payable { completed = true; } Solidity gives me the error: Expression has to be an lvalue.