> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/salesforce-lightning/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.3/integrate-the-salesforce-lightning-app/step-17-integrate-the-digital-river-components-into-the-checkout-flow/subflow-configuration/configure-the-payment-and-billing-address-subflow/edit-the-decision-elements.md).

# Edit the decision elements

Learn how to edit the decision elements

To edit decision boxes:

1. Double-click the **Which payment type is selected** decision element.\
   ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2F98uMt2H1HZkregnKwQFm%2FWhich%20payment%20type%20is%20selected%20decision%20element.png?alt=media)
2. From the Edit Decision dialog, click **+** next to **Outcome Order** to add a new outcome.\
   ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FPNGlZY4eoNqE0cMaUpn4%2FOutcome%20order.png?alt=media)
3. From the **New Outcome** tab, enter the following values in the fields:
   * **Label**: Type `Digital River`.
   * **Outcome API Name**: The field automatically populates the **Digital\_River** value.
   * **Resource**: Type `paymentType` and click the **paymentType** variable.
   * **Value**: Type `DigitalRiver`.\
     ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FC3sBpYMc0pHtGkrAKRZs%2FWhich%20payment%20type%20is%20selected%20edit%20decision.png?alt=media)
4. Click **Done**.
5. Double-click the **Update address if changed** decision element.\
   ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2F4acErGBNrLW9m6Fwh1v9%2FUpdate%20address%20if%20changed%20decision%20element.png?alt=media)
6. From the **Edit Decision** dialog, click **+** next to **Outcome Order** to add a new outcome.\
   ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FmAD3jYDnGGkTlwb782oe%2FOutcome%20order%20-%20Update%20address%20if%20changed.png?alt=media)
7. From the **New Outcome** tab, enter the following values in the fields:
   * **Label**: Type `Payment Equal DR`.
   * **Outcome API Name**: The field automatically populates the **Payment\_Equal\_DR** value.
   * **Resource**: Type `paymentType` and click the **paymentType** variable.
   * **Operator**: Select **Equals** from the dropdown list.
   * **Value**: Type `DigitalRiver`.\
     ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2F35ZTclZgOEgINlf2gY4I%2FEdit%20Decision%20-%20update%20address%20if%20changed.png?alt=media)
8. Click **Done**.
