
FleetConf::Agent::Parser::Stmt::FOREACH - FOREACH command

NAME Some-Agent
MNEMONIC foo
WORKFLOW Null
FOREACH thing IN this.things DO
# Do something with thing
END

This command adds the ability to loop over a list of items.
The BNF for the FOREACH command is:
agent_command +::= foreach_section foreach_section ::= foreach_command agent_command(s) end_command foreach_command ::= "FOREACH" variable "IN" list_expression "DO" EOL
These statements are evaluated during every phase of agent execution.

Andrew Sterling Hanenkamp, <hanenkamp@users.sourceforge.net>

Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.
FleetConf is distributed and licensed under the same terms as Perl itself.