<for> iterate over a sequence
- name
- for
- xml namespace
- http://moyaproject.com
Execute a block of code for each value in a sequence. This tag iterates over a sequence, and executes the enclosed block for each value.
Example
<for src="['John', 'Scorpius', 'Rygel']" dst="crew_member" filter="crew_member != 'Rygel'">
<echo>${crew_member} is on board!</echo>
</for>
attributes
name |
purpose |
type |
required? |
default |
choices |
dst |
Destination value |
comma list |
Yes |
|
|
filter |
If given, then only those values which match this condition will cause the enclosed block to execute. |
expression |
No |
yes |
|
src |
Source sequence |
expression |
Yes |
|
|
inherited attributes
name |
purpose |
type |
required? |
default |
choices |
if |
Conditional expression |
expression |
No |
yes |
|