The Quit command is quitting the if statement therefore no value is allowed.
Clean code is not to have multiple places that quit with value, in long code it is difficult to track. Therefore a nice structure could be:
Ser result=1
If [condition] { ... set result=0 }
else { ... set result=1 }
Quit result
- Log in to post comments
.png)