"Show if" problem
Hi everyone,
I have recently moved to OpenSesame for my experiments and I am just a beginner, but I find it extremely intriguing!
I am currently using version 3.2.1.
In a very simple experiment, I am trying to play an audio file (the pronunciation of a word) in each trial, with or without the written word appearing on the screen.
To do so, I defined the variables 'audio' (name of the audio file / name of the word) and 'ortography' (yes or no, whether the written word should appear or not) in the block loop. In the trial sequence, after putting a sampler, I have created a sketchpad where the text element [audio] is in the centre of the canvas. In the 'show if' window I wrote: [ortography] = yes.
The resulting script for the text element is as follows:
draw textline center=1 color=black font_bold=no font_family=mono font_italic=no font_size=51 html=yes show_if="[ortography] = yes" text="[audio]" x=0 y=224 z_index=0
The problem is: the written word appears in all trials!!
I have also tried to write in the 'show if' window:
- [ortography] == yes
- [ortography] = 'yes'
- [ortography] = "yes"
- [ortography] == 'yes'
- =var.ortography == 'yes'
...and all the possible combinations, but the problem persists.
Have anyone had the same problem?
Thanks everyone in advance,
Francesco
Comments
Hi Francesco,
There was indeed a bug that caused Show If statements to be ignored. However, this has been fixed in 3.2.2, so updating should resolve the issue.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Indeed, I've updated OpenSesame to the new version and the bug is fixed!
Thank you very much Sebastiaan!
Bests,
Francesco