ugakebet 4 Posted February 28, 2014 Report Share Posted February 28, 2014 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? Quote Link to post Share on other sites
darryl561 177 Posted February 28, 2014 Report Share Posted February 28, 2014 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") } } Quote Link to post Share on other sites
ugakebet 4 Posted February 28, 2014 Author Report Share Posted February 28, 2014 That's why I mentioned that I substituted the run javascript with the WAIT command, which didn't get executed either. I think there is a problem in the If else statement? Quote Link to post Share on other sites
UBotBuddy 331 Posted February 28, 2014 Report Share Posted February 28, 2014 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") } } Quote Link to post Share on other sites
ugakebet 4 Posted February 28, 2014 Author Report Share Posted February 28, 2014 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.