Jump to content
UBot Underground

Have problem with If else statement


Recommended Posts

Hey guys, this is my code 

if($search page("You must enter at least one keyword, category, or web site")) {
        then {
            run javascript("alert(\"POP\");")
           
        }
        else {
            run javascript("alert(\"POPelse\");")
            
        }
    }

But none of the alerts activate? What is wrong?  Either POP or POPelse should pop up, correct?

 

I tried to replace alert with the WAIT function, so wait for 20 seconds if ...... happens, but still neither the THEN, nor the ELSE runs?

Link to post
Share on other sites

The THEN, or ELSE does run, it's the "run javascript" that is not working. I don't know much about that though.

if($search page("You must enter at least one keyword, category, or web site")) {
    then {
        run javascript("alert(\"POP\");")
        alert("yes")
    }
    else {
        run javascript("alert(\"POPelse\");")
        alert("no")
    }
}
Link to post
Share on other sites

 

Why not use this?

if($search page("You must enter at least one keyword, category, or web site")) {
    then {
        alert("POP Then")
    }
    else {
        alert("POP Else")
    }
}

 

I dont see what is the difference with what I wrote, but I'll give it a shot

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...