Conditional structures: Difference between revisions

Content added Content deleted
m (→‎{{header|PL/I}}: minor correction)
Line 3,394: Line 3,394:


* in PL/I there is no fall-through to the next '''when'''. When execution reaches the end of a matching clause, it continues after the end of the select statement, not in the code for the next case.
* in PL/I there is no fall-through to the next '''when'''. When execution reaches the end of a matching clause, it continues after the end of the select statement, not in the code for the next case.
* the '''do''' ... '''end''' statements can be omitted if the when clause is followed by a single statement.
* the '''do''' ... '''end''' statements can be omitted if the when clause is a single statement.
* if no '''other''' (or in full: '''otherwise''') statement is present and none of the '''when''' cases is matched, the program will end in error.
* if no '''other''' (or in full: '''otherwise''') statement is present and none of the '''when''' cases is matched, the program will end in error.