When you call require()
with an argument that equals false, require will throw an error, the rest of the code will not be executed and the transaction will revert.
If you call it with an argument that equals true, the code will just run as expected.
So what does require return? Say if you went if(require(false)) {}
, what would happen?