Jump to content
UBot Underground

How do I use $url with an if statement


Recommended Posts

I need to check whether the current url = the url stored in a variable. How do i do this?

 

I have a variable where I can type in what ever address i wish to visit. But later on in the script, I have to verify this address, so how can i use the $url with an = sign.

 

U kno,

 

IF $url = #myvariable THEN

Link to post
Share on other sites

I need to check whether the current url = the url stored in a variable. How do i do this?

 

I have a variable where I can type in what ever address i wish to visit. But later on in the script, I have to verify this address, so how can i use the $url with an = sign.

 

U kno,

 

IF $url = #myvariable THEN

 

You need to use Document Constants -> $url -- that always contains the URL that is currently visible in the browser window. You can use set variable to store it in a variable if its not possible to directly compare #myvariable against it (havent tried).

Link to post
Share on other sites

Im doing this also ... how I do it is ...

 

Pull the url i wantto go to from the list, Navigate to the sites url I want. Then set a variable #site.root [ u may want somehting else ]

 

http://content.screencast.com/users/sputnikkk13/folders/Jing/media/215ee60e-27fe-4afe-80b8-6641df79b4bd/2010-04-12_0855.png

 

Then you do an IF ... with evaluate ...

 

http://content.screencast.com/users/sputnikkk13/folders/Jing/media/2b53c7e4-2464-49ef-824f-73fc4fe7cb24/2010-04-12_0857.png

 

Then compare em ...

 

http://content.screencast.com/users/sputnikkk13/folders/Jing/media/2803f9f7-bed4-41e8-b741-5f0447e83c79/2010-04-12_0855.png

 

yay! I actually know how to do something ... LOL

 

HTH,

 

sputnik

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