Created
June 23, 2012 19:25
-
-
Save mgkimsal/2979606 to your computer and use it in GitHub Desktop.
missing answers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def canDisplayQuestionGroup(QuestionGroup questionGroup, answers) | |
{ | |
if(questionGroup.displayConditions==null || questionGroup.displayConditions.size()==0) | |
{ | |
return true | |
} | |
def display = true | |
questionGroup.displayConditions.each { dc-> | |
def matched = false | |
if(dc.conditionQuestion!=null) | |
{ | |
def givenAnswer = answers[dc.conditionQuestion.id as Integer] | |
if(dc.comp=="equals") | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment