--- title: "Can I branch [Scenarios] with if statements and while statements?" slug: "can-i-use-if-and-for" updated: 2024-10-22T04:29:07Z published: 2024-10-22T04:29:07Z canonical: "help.autify.com/can-i-use-if-and-for" excludeFromExternalSearch: true --- > ## 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? At this time, we 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 up to the point of branching. Then, select ***[Step Group]*** from the New Scenario Page and create a scenario for each branch. **Related article:** - [Can I merge two scenarios and use them as one scenario?](/v1/docs/is-it-possible-to-merge-two-sc)