Forum for the discussion around technical documentation, user documentation, website & testing

Variables documentation

Plus d'informations
il y a 5 ans 1 mois #7465 par a511197
Variables documentation a été créé par a511197
Hi there,

I'm looking for clarity on what should be added in the answer field and 'correct' field when setting up a variable MCQ, see attachment. I gave an end user the variable guide but they came back to me to say the guide doesn't mention what goes in these fields. Could someone clarify and possibly update the guide just so it's absolutely clear.

many thanks,
Alison

If you can use Lego, you can use Xerte
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 1 mois - il y a 5 ans 1 mois #7470 par Fay
Réponse de Fay sur le sujet Variables documentation
Hi Alison
There are two options for how to do this:
1. Create a fourth variable (e.g. called 'd') with the fixed value of
Code:
[a]+[b]+[c]
and then reference the new variable in the answer field e.g. [d]
2. Dynamically calculate the answer directly in the answer field without the need for a new variable to be created. This can be done in this format:
Code:
[{[a]+[b]+[c]}]
where the [{ }] indicate that the variable sum within should be calculated rather than just shown on screen as separate variables.
Option 2 is a newer feature that I think has only been available since 3.9 so isn't in the variable guide that was written before then. I'll add info about how to do this & make how you would do option 1 a bit clearer. Thanks for flagging this up
Fay
Dernière édition: il y a 5 ans 1 mois par Fay.
Les utilisateur(s) suivant ont remercié: a511197, Menno

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 1 mois #7471 par a511197
Réponse de a511197 sur le sujet Variables documentation
Hi Fay,

Thank you for this. I got it working using the first option but the second option is good to have too! It's been a long time since I used variables.

bw,
Alison

If you can use Lego, you can use Xerte

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 ans 8 mois #7781 par Menno
Réponse de Menno sur le sujet Variables documentation
Hello everyone,

Does someone have an overview of interactive pages that work with variables.

Best,
Menno

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ingdonronmhelenmdFay
Temps de génération de la page : 0.133 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo