[solved] how to set my output to 1,2,3
Hello all,
I am trying to make a simple questionnaire.
-each question has two options, for example: A. Cat or B. Dog
- when i "logger" the response, the output is exactly that: "A. Cat"
--> i would like for the out put to be 0's and 1's
how do i set it up so that the output is a 0 for when answered A, and a 1 for when the participant answers B ?
please help
thank you ![]()

Comments
Hi,
What you could do is create a new variable, let's call it
recoded_response, that basically the maps the original response ('A. Cat') to a recoded value (0). A simple script like the one below should do the trick. This should be in the run-phase of aninline_scriptthat directly follows the form. See the code comments for an explanation.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
phenomenal ! Thank you Seb...
one more question: how can i centre the Form_multiple_choice plug in?
i would like the radio button options to be presented in the middle(centre) of the screen vs. Left
thanks
Hi,
The
form_multiple_choiceplug-in does not allow you to center the radio buttons. However, if you want more flexibility, you can always create your own custom form using theform_baseplug-in. That's not too difficult and is described here:Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Seb! this application is amazing! i feel like a computer programmer ! so smart! lol
one more question seeing as youre soo amazingly helpful!
how do i do a dynamic display?
simple design of a bar which increases as the number of key presses increases.
let me know.
thanks
Hi,
If you want to implement these kinds of dynamic stimuli, you'll have to use Python scripting. You will find various discussions on this forum, showing sliders, etc. For example here:
This shows the general idea, and should help you get started, but obviously it's not exactly what you need. So what I would is first walk through a Python tutorial to get a basic understanding of Python, and then try to implement your growing bar, possibly based on code snippets here on the forum.
If you get stuck, feel free to ask. But make sure to provide enough detail so that it's clear what exactly you want to achieve, what you've done so far, and why it doesn't work as you'd like.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
thx
Marking this as solved. For potential questions on the dynamic display, please open a dedicated thread (so that it can be found more easily for reference later on).