Twig parameter not working properly

Re: Twig parameter not working properly

by Matteo Candita -
Number of replies: 0

Wow, that's a lot!

I think I'll get back to it when (if) I will have more spare time. All things considered, for now I'll stick with the TEST.extra approach. I'll definitely look more into how the combinator works. There are still so many options left to explore! :D
Combinator template graders are on my list.

I'll leave it like this. I'll be sure to post on the forum when I'm fully satisfied with my prototype!
Again, many thanks!

{% if TEST.extra is not empty %}
let randomIndex = {{ TEST.extra }};
{% else %}
let randomIndex=0;
{% endif %}