if else not work plz help

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
jewelrana12
Posts: 1
Joined: Fri Sep 15, 2017 10:36 am

if else not work plz help

Post by jewelrana12 » Fri Sep 15, 2017 10:42 am

if (TAG POS=4 TYPE=DIV ATTR=CLASS:du)
THEN {
TAG POS=4 TYPE=DIV ATTR=CLASS:du EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL
TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:mailru ATTR=NAME:mailoutput CONTENT=www.facebook.com{{!VAR1}}
}
else (TAG POS=4 TYPE=DIV ATTR=CLASS:dv)
THEN {
TAG POS=4 TYPE=DIV ATTR=CLASS:dv EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL
TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:mailru ATTR=NAME:mailoutput CONTENT=www.facebook.com{{!VAR1}}
}
else if (TAG POS=4 TYPE=DIV ATTR=CLASS:dm)

{
TAG POS=4 TYPE=DIV ATTR=CLASS:dm EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL
TAB T=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:mailru ATTR=NAME:mailoutput CONTENT=www.facebook.com{{!VAR1}}
}
serbeer
Posts: 44
Joined: Fri Sep 11, 2015 5:36 am

Re: if else not work plz help

Post by serbeer » Fri Sep 15, 2017 4:53 pm

iim does not have if...else syntax
Post Reply