Forum Discussion

RobvanBeest2's avatar
RobvanBeest2
New Contributor
2 years ago
Solved

nested if-statemenet

Hello,

 

I want to use nested if statements whlie using keyword testing.

When I do so, I get an error.

Only 1 if..then..else statement seems to work.

Can anybody tell me the exact syntax of nested i-statements?

 

  • Marsha_R's avatar
    Marsha_R
    2 years ago

    Your second else is not lined up with the If statement.  They need to match like your first two do.

     

5 Replies

    • RobvanBeest2's avatar
      RobvanBeest2
      New Contributor

      Hello Emma,

       

      I got the messages: "Exception" and "The test execution was interrupted"

       

      Rob

      • Marsha_R's avatar
        Marsha_R
        Champion Level 3

        Your second else is not lined up with the If statement.  They need to match like your first two do.