Conditional structures: Difference between revisions
Content added Content deleted
(Applesoft BASIC) |
SqrtNegInf (talk | contribs) m (→given/when: update link to documentation) |
||
Line 6,018: | Line 6,018: | ||
<tt>when</tt> blocks are allowed in any block that topicalizes <tt>$_</tt>, including a |
<tt>when</tt> blocks are allowed in any block that topicalizes <tt>$_</tt>, including a |
||
<tt>for</tt> loop (assuming one of its loop variables is bound to <tt>$_</tt>) |
<tt>for</tt> loop (assuming one of its loop variables is bound to <tt>$_</tt>) |
||
or the body of a method (if you have declared the invocant as <tt>$_</tt>)." See |
or the body of a method (if you have declared the invocant as <tt>$_</tt>)." See more at: https://docs.raku.org/language/control#index-entry-switch_(given) |
||
There are also statement modifier forms of all of the above. |
There are also statement modifier forms of all of the above. |