Using net:http parser, I'm performing two queries on Google per keyword and saving both results to the same file like this:
I'm having a problem where if either query fails the result fail contains only a partial result.
Is there a way to only create a result file if both queries are successful ensuring the result file contains both results?
Code:
[% IF p1.info.success == 1;
IF query.lvl ==0;
p1.data _ "\n<!-- PAGE_SEPARATE -->\n";
ELSE;
p1.data _ "\n";
END;
END;
USE Math;
dir = Math.int(query.num / 2000);
tools.query.add(query.first _ ';' _ dir, 1) %]
I'm having a problem where if either query fails the result fail contains only a partial result.
Is there a way to only create a result file if both queries are successful ensuring the result file contains both results?