ugakebet 4 Posted April 12, 2010 Report Share Posted April 12, 2010 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 Quote Link to post Share on other sites
Joe118 3 Posted April 12, 2010 Report Share Posted April 12, 2010 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). Quote Link to post Share on other sites
sputnik13 12 Posted April 12, 2010 Report Share Posted April 12, 2010 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 Quote Link to post Share on other sites
ugakebet 4 Posted April 12, 2010 Author Report Share Posted April 12, 2010 thanks a lot sputnik.. really very helpful especially the red arrows Quote Link to post Share on other sites
HarryPotter 9 Posted April 13, 2010 Report Share Posted April 13, 2010 great tip! wanted to know how to do this as well =D 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.