Skip to content

Instantly share code, notes, and snippets.

@stevie-mayhew
Last active February 11, 2016 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevie-mayhew/fc5f4c90c8d829aa825c to your computer and use it in GitHub Desktop.
Save stevie-mayhew/fc5f4c90c8d829aa825c to your computer and use it in GitHub Desktop.
<%-- Main file --%>
<% loop $Students %>
<% loop $Assessements %> <%-- 'Assessment' --%>
<% loop $Up.Up.Subjects %>
<%-- I want to check if ($Assessment.SubjectID == $ID) --%>
<% end_loop %>
<% include AssessmentSubjectCheck AssessmentSubjectID=$SubjectID, $Subjects=$Up.Up.Subjects %> <%-- This is how we've changed scope to do that above need, see below for the include --%>
<% end_loop %>
<% end_loop %>
<%-- Include called AssessmentSubjectCheck --%>
<% loop $Subjects %>
<% if $ID == $Top.AssessmentSubjectID %>
YAY
<% end_if %>
<% end_loop %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment