- Add an IF activity to the document processing flow.
- In Case Condition, select an activity or the end of the flow as a branch for the flow. Click the settings icon next to the selected condition and use the dialog that will open to write a script that describes the branch condition. Click Save.
- In Else Condition, select an activity or the end of the flow as the other branch. If the Case Condition you specified is true, the previous branch will be selected in the flow. Otherwise, the branch specified in Else Condition is selected.
Note: The CurrentDocument property is a deprecated. Always points to the first document in a transaction. To get all transaction documents, use Context.Transaction.Documents.
