When I run it as typed, everything works. Once I jump by pressing space, I can not do a mid air double jump. Everything works as expected. But VS Code continues to complain about this line saying “expression must be a modifiable value” and “lvalue required as left operand of assignment”. Sometimes I think VS Code throws up errors that aren’t really a problem. If I type it exactly as Stephen did using “!isInAir” to invert the logic, VS Code doesn’t show an error.
EDITED TO ADD:
It’s a syntax problem. I’m using = instead of ==