Clarify documentation on case-else statement
Original Reporter info from Mantis: bunnylin @bunnylin
-
Reporter name: Kirinn
Original Reporter info from Mantis: bunnylin @bunnylin
- Reporter name: Kirinn
Description:
Reference guide, the case statement (13.2.2)
The case else part works implicitly as a block, accepting multiple command statements, which is by design. The documentation should be clearer on this.
It says: "The case statements can be compound statements (i.e. a Begin..End block)." To this could be added: "The else part can contain multiple statements even without a Begin..End block."
Additionally, under the section "The following are valid case statements", one of the examples should include a two-line else statement to show it is possible.
Mantis conversion info:
- Mantis ID: 36090
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 1654 (#69d22553)
- Target version: 3.2.0