Forum Discussion

RobvanBeest2's avatar
RobvanBeest2
New Contributor
3 years ago

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
    3 years ago

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

     

    • 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
        Moderator

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