Last active
February 11, 2016 19:00
-
-
Save stevie-mayhew/fc5f4c90c8d829aa825c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- 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