﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » correctstreak not resetting at the end of block</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 07 Apr 2026 13:23:21 GMT</lastBuildDate><ttl>20</ttl><item><title>correctstreak not resetting at the end of block</title><link>https://forums.millisecond.com/Topic15071.aspx</link><description>I have a trial element across several different blocks that has skip = [correctstreak=3] but it does not reset once a new block starts. Is this normal? Documentation suggests that it only tracks correctsreaks within the block. Other properties are resetting normally like trialcount. (I can use a values element instead, but I want to know what the issue is). Thanks&lt;br/&gt;</description><pubDate>Wed, 03 Dec 2014 05:54:04 GMT</pubDate><dc:creator>Alexx</dc:creator></item><item><title>RE: correctstreak not resetting at the end of block</title><link>https://forums.millisecond.com/Topic15106.aspx</link><description>Thanks for the additional details -- that's very helpful. I can confirm your observation and will file a bug for this so this gets fixed in the next release. &lt;br/&gt;&lt;br/&gt;As a possible workaround for the time being, note that the block-level trialcount appears to reset properly in your scenario:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-4=block1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block1&amp;gt;&lt;br/&gt;/ trials = [1=begin]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block2&amp;gt;&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57,28)&lt;br/&gt;/ branch = [if(response!=28) trial.mytrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial begin&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ branch = [trial.mytrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("Block # &amp;lt;%script.currentblocknumber%&amp;gt; | Trial level count &amp;lt;%trial.mytrial.trialcount%&amp;gt; | Block level count &amp;lt;%block.block1.trialcount%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 03 Dec 2014 05:54:04 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: correctstreak not resetting at the end of block</title><link>https://forums.millisecond.com/Topic15103.aspx</link><description>That does work. After some more testing, I've determined that trialcount does not reset when there following conditions are met (but it could be more general than that):&lt;br/&gt;1) the same block element is repeated, e.g.&amp;nbsp; [1-5=block1]&lt;br/&gt;2) the trial for which trialcount does not reset is branched from another trial specified in the block&lt;br/&gt;I've modified your script to replicate the issue:&lt;br/&gt;&lt;br/&gt;Note: if you change  [1=begin] to [1=mytrial]&amp;nbsp; or if you insert the block1,block2 sequence, trialcount will reset.&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1-4=block1]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;/ blocks = [1=sequence(block1,block2)]&lt;br/&gt;&lt;br/&gt;&amp;lt;block block1&amp;gt;&lt;br/&gt;/ trials = [1=begin]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block2&amp;gt;&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57,28)&lt;br/&gt;/ branch = [if(response!=28) trial.mytrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial begin&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;/ branch = [trial.mytrial]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%trial.mytrial.trialcount%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;</description><pubDate>Wed, 03 Dec 2014 00:22:55 GMT</pubDate><dc:creator>Alexx</dc:creator></item><item><title>RE: correctstreak not resetting at the end of block</title><link>https://forums.millisecond.com/Topic15099.aspx</link><description>Thanks for the addition. Oddly enough, I cannot seem to reproduce the trialcount issue in 4.0.7.0. When running e.g.&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=block1; 2=block2]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block1&amp;gt;&lt;br/&gt;/ trials = [1-10 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block2&amp;gt;&lt;br/&gt;/ trials = [1-10 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%trial.mytrial.trialcount%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;trialcount resets as expected for me. The same is true for &lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=block1; 2=block1 ]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block1&amp;gt;&lt;br/&gt;/ trials = [1-10 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block block2&amp;gt;&lt;br/&gt;/ trials = [1-10 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%trial.mytrial.trialcount%&amp;gt; | &amp;lt;%block.block1.trialcount%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;(a) What happens when you run the above -- does it reset or not?&lt;br/&gt;&lt;br/&gt;(b) How exactly are you using the property in your script?&lt;br/&gt;</description><pubDate>Tue, 02 Dec 2014 10:14:40 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: correctstreak not resetting at the end of block</title><link>https://forums.millisecond.com/Topic15098.aspx</link><description>FYI, I thought it might be only correctstreak but I have another task where trialcount does not reset. Just wanted to let you know.&lt;br/&gt;</description><pubDate>Tue, 02 Dec 2014 09:56:49 GMT</pubDate><dc:creator>Alexx</dc:creator></item><item><title>RE: correctstreak not resetting at the end of block</title><link>https://forums.millisecond.com/Topic15074.aspx</link><description>No, it's not normal -- the correctstreak should reset, but does not (which I can confirm). It's most certainly a bug. &lt;br/&gt;&lt;br/&gt;I can think of several ways to work around this (a lot depends on your overall design), but tracking streaks via &amp;lt;values&amp;gt; certainly applies and gives you the most control / flexibility.&lt;br/&gt;</description><pubDate>Thu, 27 Nov 2014 07:31:13 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>