Operating System: Windows 10 x64 English
Browser: Google Chrome Version 63.0.3239.132
First, I have read he FAQ, and know that it says EVAL can be used to analyze a certain condition and abort the macro in case this condition is true or false. But, I am trying to see if I can use EVAL to determine if a certain keyword (let's say the text "google.com) is in the address bar/url of the page I'm currently on, and if it doesn't find the text, I would like it to go to a different url (let's say its https://www.google.com/search?ei=aONoWu ... pwqoDaXxq4), and if it does find the text then I would like the script to continue as normal. The difference between what I need and what the FAQ says, is that I don't wont the Macro to be aborted if the condition is false. I have also not finished constructing the actual full Macro that I am using, but I will attach a working sample Macro, that includes the lines I need for this Macro with the example url's I gave above.
Code: Select all
TAB T=1
*To be inserted here: Look for the text "google.com" in the url of the current tab. If "google.com" is in the url, then continue with the Macro. If the textr is not found in the url/address bar, go to the url "[url]https://www.google.com/search?ei=aONoWurLAYf1zgLF3IaQAg&q=Just+an+example+url&oq=Just+an+example+url&gs_l=psy-ab.3..33i22i29i30k1l2.437.1225.0.1425.4.4.0.0.0.0.74.251.4.4.0....0...1c.1.64.psy-ab..0.4.250...0j0i22i30k1j0i22i10i30k1.0.ypwqoDaXxq4[/url]" and continue with the script.*
REFRESH
TAB T=2
*To be inserted here: Look for the text "google.com" in the url of the current tab. If "google.com" is in the url, then continue with the Macro. If the textr is not found in the url/address bar, go to the url "[url]https://www.google.com/search?ei=aONoWurLAYf1zgLF3IaQAg&q=Just+an+example+url&oq=Just+an+example+url&gs_l=psy-ab.3..33i22i29i30k1l2.437.1225.0.1425.4.4.0.0.0.0.74.251.4.4.0....0...1c.1.64.psy-ab..0.4.250...0j0i22i30k1j0i22i10i30k1.0.ypwqoDaXxq4[/url]" and continue with the script.*
REFRESH
TAB T=1
P.S. I have like zero knowledge of how to use the EVAL tool so If you could just edit the given script, and enter it with the example url and conditions given, I will be able to copy this into my current script and edit it to work for other url's.