{question.question}

{timer_res}
{#if question.image !== null}
Content for Question
{/if} {#if timer_res !== '0'} {#if question.type === QuizQuestionType.ABCD}
{#each question.answers as answer} {/each}
{:else if question.type === QuizQuestionType.RANGE} {#await import('svelte-range-slider-pips')} {:then c}
{/await} {/if} {:else if question.type === QuizQuestionType.ABCD}
{#each question.answers as answer} {#if answer.right} {:else} {/if} {/each}
{:else if question.type === QuizQuestionType.RANGE}

Every number between {question.answers.min_correct} and {question.answers.max_correct} was correct. You got {selected_answer}, so you have been {#if question.answers.min_correct <= parseInt(selected_answer) && parseInt(selected_answer) <= question.answers.max_correct} correct {:else} wrong. {/if}

{/if}