## How to edit a white point into the frist trial of a block?

##### How to edit a white point into the frist trial of a block?
 Author Message Theo Ero Group: Forum Members Posts: 3, Visits: 16 Hello Inquisit-Team,I hope you can help me because I am not able to solve the following Problem:I am programming an Experiment where People see two numbers on the screen. These numbers are either shown in a blue or red Color and the Subjects have to push the key for the red colorFor example:Red Number Left​- Trial 1: ​1R-2B- Trial 2: 5R-9B- Trial 3: 7R-2Betc.Red Number right​- Trial 1: 9B-3R- Trial 2: 4B-8R- Trial 3: 8B-1Retc.​​Now I would like to implement a White Point for the first Trial of the first block. It serves as an reminder under which condition the participants have to push the Buttons (here it is the red Color)For example: If Trial 1 is the first Trial of the first block, the White Point occurs above '1R', so on the left side of the screenI tried this with the following command:​/ onblockbegin = [if (block.First_Practiceblock.currenttrialnumber !=1) { trial.1R-2B; trial.5R-9B;trial.7R-2B. insertstimulustime(picture.point_left);}​if (block.First_Practiceblock.currenttrialnumber !=1) { trial.9B-3R; trial.4B-8R;trial.8B-1R. insertstimulustime(picture.point_right);}Or do I have to define everything with the /ontrialbegin command?Thank you for helping!Theo​​​​​​​​​​​​​​​​​​​​ Dave posted 4 Months Ago ANSWER Group: Administrators Posts: 10K, Visits: 60K +x Theo Ero - 6/17/2020Hello Inquisit-Team,I hope you can help me because I am not able to solve the following Problem:I am programming an Experiment where People see two numbers on the screen. These numbers are either shown in a blue or red Color and the Subjects have to push the key for the red colorFor example:Red Number Left- Trial 1: 1R-2B- Trial 2: 5R-9B- Trial 3: 7R-2Betc.Red Number right- Trial 1: 9B-3R- Trial 2: 4B-8R- Trial 3: 8B-1Retc.Now I would like to implement a White Point for the first Trial of the first block. It serves as an reminder under which condition the participants have to push the Buttons (here it is the red Color)For example: If Trial 1 is the first Trial of the first block, the White Point occurs above '1R', so on the left side of the screenI tried this with the following command:/ onblockbegin = [if (block.First_Practiceblock.currenttrialnumber !=1) { trial.1R-2B; trial.5R-9B;trial.7R-2B. insertstimulustime(picture.point_left);}if (block.First_Practiceblock.currenttrialnumber !=1) { trial.9B-3R; trial.4B-8R;trial.8B-1R. insertstimulustime(picture.point_right);}Or do I have to define everything with the /ontrialbegin command?Thank you for helping!TheoSorry, the /onblockbegin logic you posted doesn't make sense as given and it's not clear how it's supposed to relate to what you intend to do.First, you only do stuff in there when it's NOT the 1st trial.if (block.First_Practiceblock.currenttrialnumber !=1)Then, if (block.First_Practiceblock.currenttrialnumber !=1) { trial.1R-2B; trial.5R-9B;trial.7R-2B. insertstimulustime(picture.point_left);}do nothing at all and it's not clear what it's intended to do. FInally,trial.7R-2B. insertstimulustime(picture.point_left);is incomplete, you're not giving any time at which the picture stimulus should be inserted into the trial's stimulus presentation sequence.What you should do is indeed use /ontrialbegin, i.e. something like/ ontrialbegin = [    if(script.currentblock == "First_Practiceblock" && block.First_Practiceblock.trialcount <=1) {        trial.1r2b.insertstimulustime(picture.point_left, 0);    }].../ ontrialend = [    trial.1r2b.resetstimulusframes();]and so forth.

#### Merge Selected

Merge into selected topic...

Merge into merge target...

Merge into a specific topic ID...