Detecting if variable has a value

Answered

Comments

2 comments

  • Avatar
    wojciechka

    Currently there is no action to check this, however, you can check whether the variable contains text Unknown variable. For example:

    <setInstallerVariable> <name>someVariable</name> <value>defaultValue</value> <ruleList> <compareText> <logic>contains</logic> <text>Unknown variable</text> <value>${someVariable}</value> </compareText> </ruleList> </setInstallerVariable>

  • Avatar
    daisyp

    The test in the example above should be the other way round to work:

        <compareText>
            <logic>contains</logic>
            <text>${someVariable}</text>
            <value>Unknown variable</value>
        </compareText>
    

Please sign in to leave a comment.