Hello everyone,

I'm using strange variables, which can look like :

Answers {
    [{'question': '1567',
        'answer': 'The answer'
    }],
    [{'question': '8462',
        'answer: 'next answer}]
    ...}

I have one value of 'question', and I want to get the value of the 
correspondant answer, maybe by the list number (Answers[?].answer).

In my dream the code is : {{ Answers[ Answer|find(MyquestionValue in 
question) ].answer }}

I would prefer to don't have to do a loop because there is lots of 
questions.
It's maybe a beginner issue.

Thanks for reading
Labna

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pocoo-libs+unsubscr...@googlegroups.com.
To post to this group, send email to pocoo-libs@googlegroups.com.
Visit this group at https://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to