> 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-2.1/integrate-the-salesforce-lightning-app/step-17-integrate-the-digital-river-components-into-the-checkout-flow/integrate-the-digital-river-components-into-an-asynchronous-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://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/6f4mwieJbUpYNWFlheU1/Which%20payment%20type%20is%20selected%20decision%20element.png)
2. From the Edit Decision dialog, click **+** next to **Outcome Order** to add a new outcome.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/Rp15HqyJDMbFc6BzziqO/Outcome%20order.png)
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://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/EnDv73WJrLsTjQosKri4/Which%20payment%20type%20is%20selected%20edit%20decision.png)
4. Click **Done**.
5. Double-click the **Update address if changed** decision element.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/AYYfLUNr3vP6xtQzXnlH/Update%20address%20if%20changed%20decision%20element.png)
6. From the **Edit Decision** dialog, click **+** next to **Outcome Order** to add a new outcome.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/OnNnodU21yRMB2zWZVGs/Outcome%20order%20-%20Update%20address%20if%20changed.png)
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://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/BEOxD8JtN8rPa0pglgLL/Edit%20Decision%20-%20update%20address%20if%20changed.png)
8. Click **Done**.
