Jump to content
UBot Underground

Recommended Posts

Hello,

 

I'm trying to create a loop to run some actions only if the url of the browser is equal to 2 string I have entered. My problem is that the loop cannot exit, it runs infinitely.

 

What is the correct way to compare the URL with 2 given strings in UBOT?

 

My script is:

 

loop while($comparison($url,"!= Does not equal",$either("URL1","URL2"))) {
        //my actions here
    }

Link to post
Share on other sites

The idea is that the actions I have put in the loop, redirect you to either URL1 or URL2, so I want to make sure one of those URLs is met, and I see that the bot redirects to one of them when I test it, but it just reenters the loop and starts from the beginning.

Link to post
Share on other sites

use

if($either($comparison($url,"!= Does not equal","URL1"),$comparison($url,"!= Does not equal","URL2"))) {
    then {
    }
    else {
    }
}

or

loop while($either($comparison($url,"!= Does not equal","URL1"),$comparison($url,"!= Does not equal","URL2"))) {
}

 

 

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...