How do I use If Statements for this code?

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

How do I use If Statements for this code?

by macrodude on Mon Sep 16, 2013 9:48 am

So I'm trying to make a macro to catch Pokemon from maps in this game but there if you encounter a Turf War it will show this:

Image

As you can see the click button says "Lets Battle!" and it redirects you to a battle link.

However, I want to make an if statement that if I encounter this battle link I would refresh the page instead and let me go here.

Does anybody know how to code if statements for this?

So here's how I want it to work:
if (it encounters the Turf Battle)
will click another link
else
keep clicking the map to catch using the click x and y
macrodude
 
Posts: 11
Joined: Thu Sep 12, 2013 12:21 pm

Return to iMacros for Firefox

Who is online

Users browsing this forum: diarafbi and 7 guests

-->