So im wanting to compare a number(pullNumb)(gotten by another function elsewhere) to a range of numbers in an array.
for this example, lets say:
var pullNumb = 100;
var morn_T= new Array(6,7,8,9,10,11,12,13,14,15,16,17,18,19);
if(pullNumb>morn_T[1]){ document.write(" xyz ");
}
now instead of me writing out morn_T[1],[2],[3];
etc...is there a way to shorten this?
ideally if i could add this range to a variable that would be great. but anything better than this long way ill gladly take.
i found some page on here but...man that page was WAY to advanced for me....had other languages so i got lost.
im still learning this so any tipslinks etc, i humble accept.
thanks in advance.