public boolean compareRelation(String first, String second, char relation,
			String type) {
		if (relation == '>') {
			if (type.equalsIgnoreCase("String")) {
				return first.compareTo(second) > 0;
			}
			return Double.parseDouble(first) > Double.parseDouble(second);
		}
		if (relation == '<') {
			if (type.equalsIgnoreCase("String")) {
				return first.compareTo(second) < 0;
			}
			return Double.parseDouble(first) < Double.parseDouble(second);
		}
		if (relation == '=') {
			if (type.equalsIgnoreCase("String")) {
				return first.compareTo(second) == 0;
			}
			return Double.parseDouble(first) == Double.parseDouble(second);

		}
		return false;
	}