#if ($currentMode == $QUIZ_MODES.NOT_RUNNING)

Starta testet

#elseif ($currentMode == $QUIZ_MODES.QUESTION) #foreach ($question in $context.questions)
${question.question}
#if ($question.hasImages) #end
#end #elseif ($currentMode == $QUIZ_MODES.SINGLE_ANSWER)

Du svarade: #if( $context.isCorrect ) Rätt #else Fel #end

    #foreach ($alternative in $question.alternatives)
  1. ${alternative.alternative.value.text} #if ($context.correctAnswer.id.equals($alternative.id)) (rätt svar) #elseif ($context.userAnswer.id.equals($alternative.id)) (ditt svar) #end
  2. #end
${context.question.answer}

Nästa fråga

#elseif ($currentMode == $QUIZ_MODES.ERROR)

Fel

${context.error}

#elseif ($currentMode == $QUIZ_MODES.RESULTS)

Resultat

Du hade ${context.correctAnswers} rätt av ${context.totalQuestions} möjliga

#foreach ($question in $context.result)

Fråga ${velocityCount}: #if( $question.userCorrect ) Rätt #else Fel #end

${question.question.questionText}

    #foreach ($alternative in $question.question.alternatives)
  1. ${alternative.alternative.value.text} #if ($question.correctAnswer.id.equals($alternative.id)) (rätt svar) #elseif ($question.userAnswer.id.equals($alternative.id)) (ditt svar) #end
  2. #end
#end Gör testet igen! #end