Syntax error in IF



  • Hi

    In my IF statement im getting syntax error

    Final Message : Script finished with error :SyntaxError: Parse error
    

    my IF looks like

    [[SOURCE]].indexOf("h1\":\"\"}}},\"loggedIn\":true")  >= 0 && [[CURRENT_URL]].indexOf("modify/profile.do") >= 0
    
    

    If i remove first clouse then its works good but something seems brokes xml file, any suggestions?



  • @gudolik I just catered this error by deleting extra code in the script. search out, there would be extra actions that you would have made but they are not actually performing like you would have made a function but didn't call it. so that code is the reason for this error because browser automation studio read all the script while running the program.



  • @gudolik said in Syntax error in IF:

    Hi

    In my IF statement im getting syntax error

    Final Message : Script finished with error :SyntaxError: Parse error
    

    my IF looks like

    [[SOURCE]].indexOf("h1\":\"\"}}},\"loggedIn\":true")  >= 0 && [[CURRENT_URL]].indexOf("modify/profile.do") >= 0
    
    

    If i remove first clouse then its works good but something seems brokes xml file, any suggestions?

    https://community.bablosoft.com/topic/5037/ошибка-при-запуске/5

    [[SOURCE]].indexOf("h1\":\"\"\u007D\u007D\u007D,\"loggedIn\":true")  >= 0 && [[CURRENT_URL]].indexOf("modify/profile.do") >= 0
    


  • @Fox said in Syntax error in IF:

    [[SOURCE]].indexOf("h1":""\u007D\u007D\u007D,"loggedIn":true") >= 0 && [[CURRENT_URL]].indexOf("modify/profile.do") >= 0

    Fox as always saving the day! Thanks again!


Log in to reply