Genie Discord forum
Experimental changes to TodosMVC sample app. Added this to a template HTML view file:
<% for_each(hierarchy) do (ont_text, surveys) %>
Onit: $(ont_text)<% for_each(surveys) do (survey_text, questions) %>
Survey: $(survey_text)<% end %> <% end %>
Many experiments. Inner most loop always works even 4 levels deep, but only ONCE, which seems to indicate the outer loops don't. Please note, using "for_each" here. Nested "for" loops don't work AT ALL.
I searched for 'nested loops' here, but got no results. Seems it's just me. What am I missing?
Oh, and this code in Julia, works perfectly with for_each or for:
for_each(hierarchy) do (ont_text, surveys)
for_each(surveys) do (survey_text, questions) println("Survey: ", survey_text) for_each(questions) do (question_text, answers) println("Question: ", question_text) for_each(answers) do (answer) println(answer) end end end
Sure, give me a link and I will certainly do that
please check the link in my post above
Sorry, missed that