Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

How to just pass one variable from an experience with 2 variable

Hi,


I'm a beginner in opensesame, i just want to know how can i pass only 1 variable in a experience and not all the variable with python.

I try to do the most simplified,

When i run the experience, I always have the experiment "Au revoir" and after the experiment "coucou",

i want to know how i can just pass one of the 2 experiment with Python but it's doesn't work.

I'm sorry if my vocabulary is bad..

Thank you so much.


Comments

  • Hi,

    I think you are looking for the run_if field of the sequence (in your case the bonjour sequence). I attach an example that demonstrates how to use it.

    Right now it still runs both types of loops. if you dont want that behavior, you can drop the outer loop and use a random choice like in your code above. Also, based on your example above, I don't think you fully grasped how to use loops and sequences. Perhaps it would be wise to work on some of our tutorials to familiarize yourself better with Opensesame before moving on? That way, you will probably save time further down the road.

    more info:

    Good luck,

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.