Making an action conditional

About this task
To make an action occur only if a specified condition applies, add a set of guard conditions. Within each guard condition, use the onTrue and onFalse attributes to determine what happens when the passes or fails the evaluation of the condition. The values of the attributes are one of the flow modifiers:
Example

The following example demonstrates how to apply these conditions:

<conditions>
  <checkPINCode onTrue="continue"
onFalse="changeState(confirmationPage)">
</conditions>
What to do next
If the PIN contained in the context hierarchy for the action passes the checkPINCode evaluation, the validating class returns true and the processor performs the action containing this condition. If the validating class returns false, the processor transitions to the confirmation page state instead of performing the action.