Conditional structures: Difference between revisions
Content deleted Content added
Langurmonkey (talk | contribs) →{{header|Langur}}: add fallthrough explanations |
Langurmonkey (talk | contribs) m →given |
||
Line 2,934: | Line 2,934: | ||
===given=== |
===given=== |
||
Given expressions are highly flexible. See langurlang.org for |
Given expressions are highly flexible. See langurlang.org for details. |
||
Given expressions are scoped per block. Also, test expressions may contain declarations which are scoped to the entire expression. Conditions (case statements) may not contain declarations. |
Given expressions are scoped per block. Also, test expressions (the .x, .y., .z list below) may contain declarations which are scoped to the entire expression. Conditions (case statements) may not contain declarations. |
||
<lang Langur>given .x, .y, .z { |
<lang Langur>given .x, .y, .z { |
||
case true: ... # all are true |
case true: ... # all are true |