You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Validate: marks must be positive (greater than 0) -->
24
+
{{- range $index, $question := $p.questions -}}
25
+
{{- $marks := or $question.marks 0 -}}
26
+
{{- if le $marks 0 -}}
27
+
{{- errorf "Question %d (id: %s) has invalid marks value '%v'. Marks must be greater than 0. Please update the 'marks' field with a positive number. [ %s ]" (add $index 1) $question.id $marks $.File.Path -}}
28
+
{{- end -}}
29
+
{{- end -}}
30
+
23
31
{{- $numberOfQuestionSets := div (len $p.questions) $totalQuestionsPerSet -}}
0 commit comments