Steven 2 Posted June 26, 2012 Report Share Posted June 26, 2012 Hi, I would like to do the following: check if a certain element (by taking picture with ubot) is on the page, if yes, write 1 to a csv file if not, write 0 to the same file. It sounds ridiculously easy, but I can't seem to integrate the checking for an element into the if. Thanks,Steven Quote Link to post Share on other sites
Legend 181 Posted June 26, 2012 Report Share Posted June 26, 2012 Not sure if you can save a picture with a standard license... http://www.ubotstudio.com/forum/public/style_emoticons/default/unsure.gif Quote Link to post Share on other sites
Steven 2 Posted June 26, 2012 Author Report Share Posted June 26, 2012 Not sure if you can save a picture with a standard license... http://www.ubotstudio.com/forum/public/style_emoticons/default/unsure.gif I have the professional version or whatever It's named. I can save a picture...but that wasn't the question ;-) Quote Link to post Share on other sites
Legend 181 Posted June 26, 2012 Report Share Posted June 26, 2012 I have the professional version or whatever It's named. I can save a picture...but that wasn't the question ;-)You might want to update your profile so it says pro instead of standard... so you don't waste anyone else's time... http://www.ubotstudio.com/forum/public/style_emoticons/default/dry.gif In your if statement you can do a $comparison... with a $search page or $exists for a first value... and then use your picture there... http://www.ubotstudio.com/forum/public/style_emoticons/default/smile.gif Quote Link to post Share on other sites
Steven 2 Posted June 26, 2012 Author Report Share Posted June 26, 2012 You might want to update your profile so it says pro instead of standard... so you don't waste anyone else's time... http://www.ubotstudio.com/forum/public/style_emoticons/default/dry.gif Done In your if statement you can do a $comparison... with a $search page or $exists for a first value... and then use your picture there... http://www.ubotstudio.com/forum/public/style_emoticons/default/smile.gif I'll give that a try. Thanks. Quote Link to post Share on other sites
JohnB 255 Posted June 26, 2012 Report Share Posted June 26, 2012 If---> $exists is all you need... John Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.