Conditional structures: Difference between revisions

Line 3,181:
# ... and that a decoupling assignment returns a Boolean...
 
if val (.alias, .name) = submatch($re/^(\.idregex;)\\s*;\\s*(\.idregex;)/, .row) {
# success (2 or more values in array returned from submatch function)
# use .alias and .name here
Line 3,192:
...
}</lang>
 
Prior to langur 0.10, you would use parentheses around the declared variable names (.alias, .name).
 
===shortened form if expression===
890

edits