ifb (L > 0 and L < 11) or (L > 40 and L < 51) or (L > 80 and L < 91) then i = 1 ifb (L > 0 and L < 11) then ii = 1 elseif (L > 40 and L < 51) then ii = 2 else ii = 3 endif elseif (L > 10 and L < 21) or (L > 50 and L < 61) or (L > 90 and L < 101) then i = 2 ifb (L > 10 and L < 21) ii = 4 elseif (L > 50 and L < 61) ii = 5 else ii = 6 endif endif