Programming Language for Template params

Programming Language for Template params

de Michael Backus -
Número de respuestas: 1

I'm trying to make a for loop question that presents students with a different start, end, and interval each time they take the quiz. I tried following your Select last {{n}} items from a list. randomisation question example, but I don't know what programming language is used in the Template params box, so it's hard for me to figure out what each line of code means.

I've attached the question prototype I've created, along with an example of what I'm trying to accomplish that is not randomized, and my most recent attempt at a randomized question. Currently the expected output appears to be an empty array, which of course is not what I'm trying for.

En respuesta a Michael Backus

Re: Programming Language for Template params

de Michael Backus -

Richard,

After a little searching, I finally discovered that the coding language used is Twig. If my question seems to stupid, no hurt feelings if you decide to just delete it. Otherwise, you might want to add a brief section on what Twig is and how to do something simple, along with a link to the documentation: https://twig.symfony.com/doc/3.x/