I am using iMacros for instagram automation to create an auto-follower. I go to the hashtag section, then go to most recent, and I want to follow anyone in the "most recent section" that I am not already following.
This is what I have:
VERSION BUILD=844 RECORDER=CR
URL GOTO=https://www.instagram.com/p/BRvYjUPjB7m/?tagged=scootershop
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
TAG POS=1 TYPE=A ATTR=TXT:Next
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
TAG POS=1 TYPE=A ATTR=TXT:Next
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
TAG POS=1 TYPE=A ATTR=TXT:Next
But i want it to do a sort of "if the button txt is 'follow', then click it" but if it says 'following', just click "Next".
I am aware iMacros has no built in if/else statement, but I am brand new to this, and need some guidance. Thank you!
The !ERRORIGNORE solution from Shugar's answer is the most elegant and simplest solution for this use case.
But if needed then iMacros for Firefox (but not iMacros for Chrome) includes Javascript support, which allows you to use if/then statements.
http://wiki.imacros.net/iMacros_for_Firefox#Javascript_Scripting_Interface
You can try something like this: