Aggregate Conditions

Aggregate Condition Types

There are several aggregate conditions, which logically combine or alter one ore more conditions:

Nesting Aggregate Conditions

For convenience, it is possible to define nested aggregate conditions.

Example:

Example of nested aggregate conditions
<conditions>
	<condition type="exists" id="Update">
        <file>${INSTALL_PATH}/some_path</file>
    </condition>
    <condition type="not" id="Install">
        <condition type="ref" refid="Update" />
    </condition>
    <condition type="and" id="linuxInstallOrUpdate">
      <condition type="ref" refid="izpack.linuxinstall" />
      <condition type="or" id="installOrUpdate">
        <condition type="ref" refid="Install" />
        <condition type="ref" refid="Update" />
      </condition>
    </condition>
</conditions>

Instead of defining a Aggregate Condition and using it in a condition attribute, you can also use a term in a sinple or complex expression language in the attribute. See Conditions for details.