newbot 0 Posted June 14, 2017 Report Share Posted June 14, 2017 Sorry if wrong part of forum. Can someone help me with numbers on a page. Its a price I need to scrape and execute only if its over certain number in element or else move to next part of script {if under $5700 move to next} Can't code java/python yet.. :/ Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 14, 2017 Report Share Posted June 14, 2017 You can use the if statement and set a condition to check if the number is less than 5700 or whatever number you want if($comparison(#number,"< Less than",5700)) { then { } else { } } Quote Link to post Share on other sites
newbot 0 Posted June 14, 2017 Author Report Share Posted June 14, 2017 Thank you so much was really stuck! Quote Link to post Share on other sites
newbot 0 Posted June 15, 2017 Author Report Share Posted June 15, 2017 Sorry to bug you again! Do you know how to achieve this in JavaScript? if($comparison(#number,"< Less than",5700)) {then {}else {}} Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 15, 2017 Report Share Posted June 15, 2017 Sorry to bug you again! Do you know how to achieve this in JavaScript? if($comparison(#number,"< Less than",5700)) {then {}else {}} Mozilla has a good reference for JS stuff, they can probably explain it best: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else Quote Link to post Share on other sites
newbot 0 Posted June 15, 2017 Author Report Share Posted June 15, 2017 Mozilla has a good reference for JS stuff, they can probably explain it best: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else Great thanks again for your help! 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.