Conditional Statement Help Request

However I would appreciate it if you had a better way of doing this.

  if (lp > 918) lp1 = 1;
  if (lp < 917 && lp > 816 ) lp1 = 2;
  if (lp < 815 && lp > 714) lp1 = 3;
  if (lp < 713 && lp > 612) lp1 = 4;
  if (lp < 611 && lp > 510) lp1 = 5;
  if (lp < 509 && lp > 408) lp1 = 6;
  if (lp < 407 && lp > 306) lp1 = 7;
  if (lp < 305 && lp > 204) lp1 = 8;
  if (lp < 203 && lp > 102) lp1 = 9;
  if (lp < 101) lp1 = 10;

How many of those if tests can evaluate to true, for any value of lp? Using else if statements would make the code a lot simpler.

If the ranges are relatively constant sizes, the map() function will do that in one step.