/
Variable Condition
Variable Condition
The Variable Condition
The Variable Condition can be used to check if a variable has a specific value.
Example:
<condition type="variable" id="warfilesetup"> <name>izpack.setuptype</name> <value>warfile</value> </condition>
Nested Elements
The Variable condition takes two mandatory elements, name and value.
name
Contains the name of the variable or dynamic variable. If you want to use system property or environment variable then create either variable or dynamic variable with system property or environment variable as a value and and then use the newly defined variable in the condition. You can refer to example given in Variables page.
value
Contains the value to match.