[solved] What to do if my variable contains both text and images
I am building an Implicit Association Test where my variable consists of both words and images. For example, sometimes a word has to be displayed in the middle of the screen, and sometimes an image. However, sketchpad allows me only to specify a variable that contains either text or images. Does anyone know how to resolve this problem, and is it possible to use sketchpad in a way that it can display either words or images that appear in the same variable?
Comments
If I understand correctly what you want to do, it's not too hard.
First, I would add a column to your loop table that indicates whether on a given trial the stimulus is a word or a picture. For example like so:
Then you can use a Show-if statement in a
sketchpadto determine whether you want to show text or an image. For the text element, you use show if[stimType] = wordand for the image element you use show if[stimType] = picture. The script for yoursketchpadwould then look something like this:See also:
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks for help, this definitely resolves my problem