‘I created a quiz and I have a problem. No matter whether the answer is right or wrong, it always says ‘wrong’.
if (userAnswer != null && entry.value.containsKey(userAnswer) && entry.value[userAnswer]!) {
print('Richtig!n');
score++;
} else {
print('Falsch!n');
}
`
New contributor
Michael Storz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.