Skip to content

Instantly share code, notes, and snippets.

@mgkimsal
Created June 23, 2012 19:25
Show Gist options
  • Save mgkimsal/2979606 to your computer and use it in GitHub Desktop.
Save mgkimsal/2979606 to your computer and use it in GitHub Desktop.
missing answers
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