Fixing case where negative condition is being evaluated for skipped question

EmailTemplateFixes 2.5
Griffin Caprio 2014-12-05 18:32:33 -06:00
parent 3233f93a49
commit df3b1ea088
1 changed files with 2 additions and 0 deletions

View File

@ -991,6 +991,8 @@ def dep_check(expr, runinfo, answerdict):
if check_answer.startswith(">"):
return actual_answer > check_value
if check_answer.startswith("!"):
if actual_answer == '':
return False
return check_answer[1:].strip() != actual_answer.strip()
return check_answer.strip() == actual_answer.strip()