code: def validate_LESSTHAN(in_value, restriction):
      
      #Sometimes restriction values can accidentally be put in the template <item>100</items>,
      #Making them a list, not a number. Rather than blowing up, just get value 1 from the list.
      if type(restriction) is list:
          restriction = restriction[0]
  
      value = _get_val(in_value)
      if type(value) is list:
          for subval in value:
              if type(subval) is tuple:
                  subval = subval[1]
              validate_LESSTHAN(subval, restriction)
      else:
          try:
              if value >= restriction:
                  raise ValidationError("LESSTHAN: %s"%(restriction))
          except TypeError:
              # Incompatible types for comparison.
              raise ValidationError("LESSTHAN: Incompatible types %s"%(restriction))
docs: Test to ensure that a value is less than a prescribed value.
          Parameter: Two values, which will be compared for the difference..