Show an image if a condition is satsfied


Author
Message
sbashyam
sbashyam
Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)
Group: Forum Members
Posts: 20, Visits: 33
Thank you! Could you help me out by also making sure that when the cupcakes or airplane stimuli appear, both boys that are presented on the screen have two different colour over their head? Right now it shows one with one coloured circle and the other with two different coulour circles

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
sbashyam - 7/24/2023
Randomly determined

Attached a runnable example of how you need to set up the blocks, trials, and stimulus elements to make this work. This just runs the test1_boys block eight times, so you can see what happens when either cupcakes or airplanes are the selected activity. You'll have to change the other blocks etc. in the script accordingly.
Attachments
experiment.iqx (163 views, 5.00 KB)
sbashyam
sbashyam
Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)
Group: Forum Members
Posts: 20, Visits: 33
Randomly determined

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
sbashyam - 7/24/2023
Dave - 7/24/2023
Dave - 7/24/2023

Thanks, I have the files now.

Help me understand:

- The "white rectangle" is supposed to be displayed when and where exactly?
- The screen color throughout the task is white, so how is one supposed to notice the presence of the "white rectangle"?
- You have files called rec1.png to rec8.png included in the folder you shared, but these aren't used anywhere in the script. What are they for?
- What, if anything, are participants supposed to do with the "white rectangle"?

To add: What is the purpose of the "activity_alone" picture element, as opposed to the "activity_group" picture?

There are no comments at all throughout your code, nor are there instructions, so it's impossible to determine what it is intended to do.
Whenever the cupckaes or airplane stimuli is displayed, I need the white rectangle to cover the boy on the right or the left.
The purpose is to ensure that there are only two boys on the screen as opposed to white
Those files were meant to be used in another version of the experiment, but we don't need them anymore
Activity alone vs activity group is from a previous version of the experiment, not of use now.

I basically need to show just two boys for the stimuli "cupcakes" and "airplanes". I thought covering the third boy who shows up by default was the only way. 


> Whenever the cupckaes or airplane stimuli is displayed, I need the white rectangle to cover the boy on the right or the left.

Like what? Always the one on the left or always the one on the right or is this supposed to be randomly determined somehow?
sbashyam
sbashyam
Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)
Group: Forum Members
Posts: 20, Visits: 33
Dave - 7/24/2023
Dave - 7/24/2023

Thanks, I have the files now.

Help me understand:

- The "white rectangle" is supposed to be displayed when and where exactly?
- The screen color throughout the task is white, so how is one supposed to notice the presence of the "white rectangle"?
- You have files called rec1.png to rec8.png included in the folder you shared, but these aren't used anywhere in the script. What are they for?
- What, if anything, are participants supposed to do with the "white rectangle"?

To add: What is the purpose of the "activity_alone" picture element, as opposed to the "activity_group" picture?

There are no comments at all throughout your code, nor are there instructions, so it's impossible to determine what it is intended to do.
Whenever the cupckaes or airplane stimuli is displayed, I need the white rectangle to cover the boy on the right or the left.
The purpose is to ensure that there are only two boys on the screen as opposed to white
Those files were meant to be used in another version of the experiment, but we don't need them anymore
Activity alone vs activity group is from a previous version of the experiment, not of use now.

I basically need to show just two boys for the stimuli "cupcakes" and "airplanes". I thought covering the third boy who shows up by default was the only way. 


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
Dave - 7/24/2023

Thanks, I have the files now.

Help me understand:

- The "white rectangle" is supposed to be displayed when and where exactly?
- The screen color throughout the task is white, so how is one supposed to notice the presence of the "white rectangle"?
- You have files called rec1.png to rec8.png included in the folder you shared, but these aren't used anywhere in the script. What are they for?
- What, if anything, are participants supposed to do with the "white rectangle"?

To add: What is the purpose of the "activity_alone" picture element, as opposed to the "activity_group" picture?

There are no comments at all throughout your code, nor are there instructions, so it's impossible to determine what it is intended to do.

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K

Thanks, I have the files now.

Help me understand:

- The "white rectangle" is supposed to be displayed when and where exactly?
- The screen color throughout the task is white, so how is one supposed to notice the presence of the "white rectangle"?
- You have files called rec1.png to rec8.png included in the folder you shared, but these aren't used anywhere in the script. What are they for?
- What, if anything, are participants supposed to do with the "white rectangle"?

sbashyam
sbashyam
Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)
Group: Forum Members
Posts: 20, Visits: 33
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
sbashyam - 7/24/2023
sbashyam - 7/24/2023
Dave - 7/24/2023
sbashyam - 7/24/2023

In each trial, there are images of two boys displayed, along with one stimuli - "activity_group". What I need is, when "cupcakes" or "airplanes" are displayed, I also want a white rectangle to be displayed

First, please don't paste entire scripts into a post's body. That's error-prone and generally difficult to work with. Further, if your code requires external files (images, etc.) to run, please always provide any and all files needed along with it.

Put everything in a ZIP file and attach it to a post by using +Insert -> Add File.



If the file is too big to attach here, make it available via Dropbox or any similar service (e.g. https://wetransfer.com/ ) and post the link. Thank you.

My apologies I have attached the file below
Dave - 7/24/2023
sbashyam - 7/24/2023

In each trial, there are images of two boys displayed, along with one stimuli - "activity_group". What I need is, when "cupcakes" or "airplanes" are displayed, I also want a white rectangle to be displayed

First, please don't paste entire scripts into a post's body. That's error-prone and generally difficult to work with. Further, if your code requires external files (images, etc.) to run, please always provide any and all files needed along with it.

Put everything in a ZIP file and attach it to a post by using +Insert -> Add File.



If the file is too big to attach here, make it available via Dropbox or any similar service (e.g. https://wetransfer.com/ ) and post the link. Thank you.

That ZIP shows up as empty for me.
sbashyam
sbashyam
Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)Respected Member (319 reputation)
Group: Forum Members
Posts: 20, Visits: 33
sbashyam - 7/24/2023
Dave - 7/24/2023
sbashyam - 7/24/2023

In each trial, there are images of two boys displayed, along with one stimuli - "activity_group". What I need is, when "cupcakes" or "airplanes" are displayed, I also want a white rectangle to be displayed

First, please don't paste entire scripts into a post's body. That's error-prone and generally difficult to work with. Further, if your code requires external files (images, etc.) to run, please always provide any and all files needed along with it.

Put everything in a ZIP file and attach it to a post by using +Insert -> Add File.



If the file is too big to attach here, make it available via Dropbox or any similar service (e.g. https://wetransfer.com/ ) and post the link. Thank you.

My apologies I have attached the file below
Dave - 7/24/2023
sbashyam - 7/24/2023

In each trial, there are images of two boys displayed, along with one stimuli - "activity_group". What I need is, when "cupcakes" or "airplanes" are displayed, I also want a white rectangle to be displayed

First, please don't paste entire scripts into a post's body. That's error-prone and generally difficult to work with. Further, if your code requires external files (images, etc.) to run, please always provide any and all files needed along with it.

Put everything in a ZIP file and attach it to a post by using +Insert -> Add File.



If the file is too big to attach here, make it available via Dropbox or any similar service (e.g. https://wetransfer.com/ ) and post the link. Thank you.

Attachments
stimuli_zip.zip (279 views, 22 bytes)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search