episphere / quest

experimenting with the idea of a questionnaire markup
https://episphere.github.io/quest/
2 stars 11 forks source link

Using 'exists' inside the loop #352

Closed joshid-ims closed 2 years ago

joshid-ims commented 3 years ago

If I use |displayif=exists("PREG4")|${PREG4}| inside the loop, it displays like:

image

I hope you can see the image I added here. If not, it displays like {PREG4_3_3}, depending on number of iteration instead of value. I added display if for NR condition. Otherwise, it displays value as 'undefined'.

danielruss commented 3 years ago

right... loops are problematic. @iqbal-singh and I will look into it.

joshid-ims commented 3 years ago

Thanks! If content people are ok to just display 'undefined', we do not need any changes.