Tamilselvan wrote: ↑Thu Apr 09, 2020 9:07 pm
Code: Select all
SET !VAR3 EVAL("var z; if('{{!COL2}}'!='{{!COL3}}'){z=1;} else{z=0;}; z;")
TAG POS={{!VAR3}} TYPE=INPUT:BUTTON FORM=NAME:NoFormName ATTR=ID:upd_payment_1
The above code will execute position of value. But i need change nth Position of Row value
But following Statement like ..
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:NoFormName ATTR=ID:upd_payment_1
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:NoFormName ATTR=ID:upd_payment_2
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:NoFormName ATTR=ID:upd_payment_3
.
.
.
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:NoFormName ATTR=ID:upd_payment_nth
Kindly solve this...
Hum..., "Kindly solve this..." sounds rather "commanding"..., I'm helping you finding the/a Solution, but I'm not "at your Service"...!
Alright, good, your '!VAR3' is indeed what I meant... Good...!
Yeah well, I'm not completely sure I understand what you want exactly with "nth", but again, 3rd time I mention it, the easiest Way is to use 'Relative Positioning', => with "POS=R{{!VAR3}}", and you replace the Nb in "upd_payment_nth" with a Wildcard...
And again, 3rd time also (that you don't answer/react), but I guess you can probably use what you've got in 'COL_2' or 'COL_3' to tag your 'Anchor' for 'R-POS'...
Another Approach is otherwise to use 'EVAL()' again and to multiply '!LOOP' by your '!VAR3' (hum, and with a "-1" as you have a Header in your DataSource and start '!LOOP' at 2), which will also give you directly the "POS=n" if you don't want to use 'R-POS'...
Hum, I would rather go for 'R-POS' to be honest, the "POS=n" might be "dangerous" and not completely reliable if the Order in your '.csv' and on the Page are not exactly the same, or if some Entries get added/removed on the Page and not in your '.csv' (yet)...
EDIT: I've seen your Edit while I was already typing my Reply, my Reply still stands...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...