The CompareVersions Condition
The CompareVersion Condition can be used to find out, how two given version strings relate.
Example:
The CompareVersion condition has been introduced in IzPack 5.0.
Nested Elements
arg1
This is a mandatory nested element, defining the left version to compare. Any string is allowed, IzPack will try to resolve it as a version string.
arg2
This is a mandatory nested element, defining the right version to compare. Any string is allowed, IzPack will try to resolve it as a version string.
operator
This is a mandatory nested element, specifying the comparison operation to apply
Allowed values:
- eq - check whether both versions are equal (=)
- ne - check whether both versions differ (not equal) (<>)
- leq - check whether the left version is less than or equal the right version (<=)
- lt - check whether the left version is less than the right version (<)
- geq - check whether the left version is greater than or equal the right version (>=)
- gt - check whether the left version is greater than the right version (>)
Labels