## Give feedback after a block of trials depending on percent correct responses

##### Give feedback after a block of trials depending on percent correct...
 Author Message Diane posted 6 Months Ago ANSWER         Group: Forum Members Posts: 52, Visits: 129 Hi, How can I give feedback at the end of a block of trials that depends on the percent correct responses. For example, if the percent is < 75% the feedback is "Try to make fewer errors" and if the percent is > 95% the feedback is "You're doing great!"Thanks!Diane Dave posted 6 Months Ago ANSWER         Group: Administrators Posts: 12K, Visits: 95K +x Diane - 5/12/2023Hi, How can I give feedback at the end of a block of trials that depends on the percent correct responses. For example, if the percent is < 75% the feedback is "Try to make fewer errors" and if the percent is > 95% the feedback is "You're doing great!"Thanks!Diane/ feedbackmsg = if (block.example.percentcorrect < 75) {    "Try to make fewer errors!"    } else if (block.example.percentcorrect > 95) {        "You're doing great!"    }^You responded correctly in <%block.example.percentcorrect%>% of trials.^^<%expressions.feedbackmsg%>/ postinstructions = (feedbackpage)/ trials = [1-100 = noreplace(a, b)]/ stimulusframes = [1=atxt]/ validresponse = ("a", "b")/ correctresponse = ("a")/ stimulusframes = [1=btxt]/ validresponse = ("a", "b")/ correctresponse = ("b")/ items = ("A")/ items = ("B") Edited 6 Months Ago by Dave Diane posted 6 Months Ago ANSWER         Group: Forum Members Posts: 52, Visits: 129 +x Dave - 5/12/2023+x Diane - 5/12/2023Hi, How can I give feedback at the end of a block of trials that depends on the percent correct responses. For example, if the percent is < 75% the feedback is "Try to make fewer errors" and if the percent is > 95% the feedback is "You're doing great!"Thanks!Diane/ feedbackmsg = if (block.example.percentcorrect < 75) {    "Try to make fewer errors!"    } else if (block.example.percentcorrect > 95) {        "You're doing great!"    }^You responded correctly in <%block.example.percentcorrect%>% of trials.^^<%expressions.feedbackmsg%>/ postinstructions = (feedbackpage)/ trials = [1-100 = noreplace(a, b)]/ stimulusframes = [1=atxt]/ validresponse = ("a", "b")/ correctresponse = ("a")/ stimulusframes = [1=btxt]/ validresponse = ("a", "b")/ correctresponse = ("b")/ items = ("A")/ items = ("B")Great, this is exactly what I needed!Thank you so much,Diane

#### Merge Selected

Merge into selected topic...

Merge into merge target...

Merge into a specific topic ID...