{% assign courses_in_progress = false %} {% assign courses_not_started = false %} {% assign courses_completed = false %} {% assign lp_in_progress = false %} {% assign lp_not_started = false %} {% assign lp_completed = false %} {% assign zero_state = false %} {% for course in courses.enrolled %} {% if course.progress == 0 %} {% assign courses_not_started = true %} {% endif %} {% if course.progress > 0 and course.progress < 100 %} {% assign courses_in_progress = true %} {% endif %} {% if course.progress == 100 %} {% assign courses_completed = true %} {% endif %} {% endfor %} {% for learning_path in learning_paths.enrolled %} {% if learning_path.progress == 0 %} {% assign lp_not_started = true %} {% endif %} {% if learning_path.progress > 0 and learning_path.progress < 100 %} {% assign lp_in_progress = true %} {% endif %} {% if learning_path.progress == 100 %} {% assign lp_completed = 100 %} {% endif %} {% endfor %} {% if courses_in_progress == false and courses_not_started == false and courses_completed == false and lp_in_progress == false and lp_not_started == false and lp_completed == false %} {% assign zero_state = true %} {% endif %}