THE FORUM IS IN READ-ONLY MODE

This forum is in read-only mode. The new forum is live at https://discourse.openbullet.dev and registrations are open!

Why else is executed where not needed?



  • IF "<STATUS"> EqualTo "CUSTOM"
    #result PARSE "<SOURCE>" JSON "result" -> VAR "result"

    IF "<result>" EqualTo "1"

    #request REQUEST POST "http://localhost/two/

    #result2 PARSE "<SOURCE>" JSON "result" -> VAR "result2"

    IF "<result2>" EqualTo "true"

    PRINT "Yes"

    ELSE

    PRINT "No"

    ENDIF

    ENDIF

    At the first response from the server, result becomes the value 2, that is, it must not fulfill the first condition and should skip the entire block. Why is it executing an ELSE block?


  • Admin

    You cannot nest IF statements.


Log in to reply