The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FleetConf::Agent::Parser::Stmt::WHEN - WHEN command

SYNOPSIS

  NAME Some-Agent
  MNEMONIC foo
  WORKFLOW Null

  WHEN something = something_else DO
    # something!
  END

DESCRIPTION

This command adds the ability to execute a piece of code conditionally.

The BNF for the WHEN command is:

  agent_command +::= when_section

  when_section ::= when_command agent_command(s) end_command

  when_command ::= "WHEN" boolean_expression "DO"

These statements are evaluated during every phase of agent execution.

AUTHOR

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

COPYRIGHT AND LICENSE

Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.

FleetConf is distributed and licensed under the same terms as Perl itself.