I have read about the conditional, but I learned nothing. It may be very difficult to explain in a simple way.
EVAL Imacros has only conditional, but not good for what I need.
To keep it simple does not have added a conditional, but the conditional is necessary for almost everything, really does not simplify, not having it.
Only you can make a conditional adding a fragment in another language, usually javascript.
Do not know if you can add in the imacros code, or do I need to put it in a separate file and call it from imacros, really I have no knowledge to do so.
Someone could help me?
I took an example of those who come in imacros, with the solution of this example I could move my macro.
I need someone to be kind enough to make it functional, so that I may take it and see what works, made and explained for dummies, so that I can understand.
Code: Select all
URL GOTO=http://demo.imacros.net/Automate/ExtractDemo
TAG POS=39 TYPE=TD ATTR=TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL
URL GOTO=http://demo.imacros.net/Automate/TestForm1
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=NAME:name CONTENT="***Extract and Fill Demo***"
TAG POS=1 TYPE=TEXTAREA FORM=ID:demo ATTR=NAME:Remarks CONTENT="Extraction results:\n\nOne dollar costs {{!VAR1}} EURO, {{!VAR2}} Pounds or {{!VAR3}} Yen."
'-----------------------------------------------------------------------------------------------
If Var1 equals to 1.022 press "button1" (TAG POS=1 TYPE=BUTTON ATTR=TXT:Click<SP>to<SP>order<SP>now)
;else press "button2"(TAG POS=1 TYPE=BUTTON ATTR=TXT:Click<SP>to<SP>order<SP>now)
------------------------------------------------------------------------------------------------
Thank you.
Selmar