Checking If Null
This is a very simple question, but because I've only been doing this language for a week, the answer has not come to me. An error occurs in between the following two lines, becaus
Solution 1:
Like this:
var Regex = /<span class="currency-robux">([\d,]+)<\/span>/;
var PriceSelling = data.match(Regex);
PriceSelling = PriceSelling ? PriceSelling[1] : '';
if (PriceSelling.length < 1) {
alert('Nothing!');
}
Post a Comment for "Checking If Null"