                     
                     let anAnswer = intAnswerForQuestionWithID(aQuestionId)
                     let aNumber = iFilterQuestion["number"] as! Int
-                    
+                    print("Answer: \(anAnswer) number: \(aNumber)")
                     if aCondition.lowercaseString == "lt" {
                         
-                        if aNumber < anAnswer {
+                        if aNumber > anAnswer {
                             return true
                         }
                         
                     } else if aCondition.lowercaseString == "gt" {
                         
-                        if aNumber > anAnswer {
+                        print("here")
+                        
+                        if aNumber < anAnswer {
+                            
+                            print("here1")
+                            
                             return true
                         }
                         

                    print(aFilterQuestion)
                    
                    if isAnd(aFilterQuestion) {
                        
                        if (conditionCheck(aFilterQuestion) && !didFail) {
                            
                            didSatisfy = true

    
    func isAnd(iFilterQuestion:NSDictionary) -> Bool {
        
        print("IS AND",iFilterQuestion["groupBy"])
        
        if iFilterQuestion["groupBy"] as? String == "AND" || iFilterQuestion["groupBy"] is NSNull {
            print("Returning")
            return true
            
        } else {
            
            print("ReturningF")

            return false
        }
    }
