Question

I would like to use iMacros to check a html site if it contains certain numbers. if it does, then I would like to assign a variable according to a number that has been found.

Like if the html contains 112233 then I woul like to assing Var1 to be 123 if the html contains 223344 then I want Var1 to be 645

What would be the way to do this?

Thanks!

Was it helpful?

Solution

Wow! That is a typical case for iMacros EVAL!

Extract the element's text with TAG and assign the value to !VAR1, using EVAL for the conditional.

If the text is not inside an html element (it could be in a comment, for instance) and so, not reachable by the TAG command, sou can try with SEARCH, which does offer some regular expression facility as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top