--- title: "Can I branch Scenarios with if statements and for / while statements?" slug: "can-i-branch-scenarios-with-if-statements-and-for-while-statements" updated: 2026-03-10T06:15:51Z published: 2026-03-10T06:15:51Z canonical: "help.autify.com/can-i-branch-scenarios-with-if-statements-and-for-while-statements" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # Can I branch Scenarios with if statements and for / while statements? Autify do not support branching or looping when testing. However, there are ways to create a single **Scenario** without a need for branching: - If you want to check if one of the branches fails: In the **Scenario** edit page, click on the step that you want to check for failures. Click on the When this step fails dropdown, select Ignore and continue. - If there is a large number of steps in the branching Scenario: Create a **Step Group** for the test content from Step 1 up to the point of branching. Then, select **Step Group** from the new **Scenario Page** and create a scenario for each branch.