This also works (with or without parens):
inc myFloor, if myMoves == UP: 1 else: -1
Run
- += operator with if statement gives errors freeflow
- += operator with if statement gives errors Jaap
- += operator with if statement gives errors cblake
