   #TODO: need to write default state check for edit
   #could we actually do this by evaluating the question itself, if it has an answer show, if not hide?
   #is there some other way?
-  
+
   #bind conditions to question
   bindConditions = (ancestor_id, question_id, operator, answer) ->
     $("[data-question-id=" + question_id + "]").on "change", ->

        if value.indexOf(answer) > -1 then hide_questions = false
    return hide_questions

  #call findRules on document ready
  findRules()

      clearQuestions(container)
    else
      container.removeClass("conditional-logic-hidden")

  #clear questions
  clearQuestions = (container) ->
    container.find("input[type!=hidden]").val("")

  #evaluate conditional logic rules
  evaluateRules = (operator, answer, value) ->
    hide_questions = true
