Easiest for me if you can put your FCI at the complete top of your OP when you open a new Thread..., I don't read (the rest) until I've found it...Goldclownfish wrote: ↑Mon May 13, 2019 5:05 ambanktotal extracted value is 40348375239922 i have double checked both var's for extra spaces about 16 times havent found oneCode: Select all
windows 10, iMacros Pro 11 ,iMacro Browser
withdrawamount extracted value is 79004350000have even made an eval statement to subtract themCode: Select all
SET havecash EVAL("var d=\"{{banktotal}}\"; var s=\"{{withdrawamount}}\" ; if (d>s){var x = \"Continue\";} else {var x=\"I1\";} x;") TAG POS=1 TYPE=SPAN ATTR=ID:{{havecash}}
get this result 40269370889922Code: Select all
SET cashleft EVAL("var a=({{banktotal}} - {{withdrawamount}}); a;")
No matter what {{havecash}} ends up as I1
tried this also with the same resultCode: Select all
SET havecash EVAL("var d='({{banksplit}})'; var s='({{withdrawamount}})'; if(d >= s){var x ='Continue';} else{var x='I1';}; x;")
The only other possiblity i can think of why this doesn't work is the extraction or extractions are not the same type.
windows 10, iMacros Pro 11 ,iMacro Browser
Buuuuut, hum-hum..., yep, one Amount is "4..." and the other one is "7...", I guess they get compared alphabetically as Strings and not numerically as Numbers...
Try this one for your first Code:
Code: Select all
SET havecash EVAL("var bt='{{banktotal}}', wa='{{withdrawamount}}'; var z; if(bt*1>wa*1){z='Continue';} else{z='I1';}; z;")
TAG POS=1 TYPE=SPAN ATTR=ID:{{havecash}}
Code: Select all
SET havecash EVAL("var bs='{{banksplit}}', wa='{{withdrawamount}}'; var z; if(bs*1>=wa*1){z='Continue';} else{z='I1';}; z;")