Conditional structures: Difference between revisions
m
→if/else if/else
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 2,917:
<lang Langur># using the fact that submatch() returns an empty array for no match and that a decoupling assignment returns a Boolean...
if
# success (2 or more values in array returned from submatch function)
# use .alias and .name here
...
} else if .x > 0 {
...
} else {
...
}</lang>
|