{% set hasGraphData = (stats.accuracy|length > 0) and (stats.speed|length > 0) %} {# Score graph #} {% if stats.accuracy|length > 0 %}

{{ 'site.results.accuracyGraphTitle'|trans }}

{% endif %} {% if stats.speed|length > 0 %}

{{ 'site.results.speedGraphTitle'|trans }}

{% endif %} {% if stats.score is defined and stats.score|length > 0 %}

{{ 'site.results.scoreGraphTitle'|trans }}

{% endif %} {# add a conclusion #} {% if hasGraphData %}

{{ 'site.results.conclusion'|trans }}

{{ 'site.results.conclusionText'|trans }}

{% else %} {# add a message saying graph data will only become visible from the second session onwards #}

{% trans %}site.results.noData{% endtrans %}

{% endif %}