0 votes

[copied from GT FB group]

I'm asking a *question with type checkbox, and there's a long list of possible answers. Users are likely to tick multiple answers. The answers get saved as a {variable}.

Now, later I do:

*list

____*{variable}*

This outputs the answers the user selected, in bold, in the form:

answer1, answer2, answer3, answer 4... [etc]

But I'd prefer this to get listed out as follows:

answer1

answer2

answer3

answer4

[etc]

I know I can give *list a type of ordered or unordered, but I'd prefer not to have them be numbered or bulleted.

Is there a trick to checking through {variable} and asking it "if there's another answer they selected in this collection, print it on the line below"?

by (5.8k points)

1 Answer

0 votes

Checkbox answers are saved as a collection. So we can do:

>> count = 1
*while: count <= answers.size
    {answers[count]}
    >>count = count + 1

 

by (5.8k points)
Welcome to Guidedtrack Q&A, where you can ask questions and receive answers from other members of the community.
134 questions
144 answers
55 comments
40 users