The completion state is that of the then or else job. If either don't exist then the Job is flagged as complete.
If any more than three jobs are provided the extra jobs are ignored.
| Name | Description | Required |
|---|---|---|
| name | A name, can be any text. | No. |
| state | The state to check against. | No, defaults to COMPLETE. |
| not | Not the state. | No, defaults to false. |
Required: At least one.
The child jobs.
<state:if xmlns:state="http://rgordon.co.uk/oddjob/state"
name="If A File Exists">
<jobs>
<exists file="some.txt"/>
<echo text="File Exists"/>
<echo text="File Doesn't Exist"/>
</jobs>
</state:if>