Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

problem with feedback (blank page)

Hi there, I would like to show a feedback item that says "you answered on time" when the task-response_time is lower than 10 seconds and says "Sorry, you were too slow" when the the task_rsponse_time is greater than 10 seconds, this is my script for the feedback item:

draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=18 html=yes show_if="[response_time_task_resp_3]>10000" text="Sorry, you were too slow!" x=0 y=-32 z_index=0
draw textline center=1 color=black font_bold=no font_family=sans font_italic=no font_size=18 html=yes show_if="[response_time_task_resp_3]<10000" text="you answered on time" x=0 y=32 z_index=0

However, the feedback correctly shows the "you answered on time" text when the response time is below 10 sec, but it shows nothing (blank feedback) when the response time is longer than 10 sec.

Is there a mistake in my code?

Thank you for your great support!

Comments

  • Hi Veronica,

    You're giving the feedback item two textlines, and I think the second one overrules the first one. So you're only left with a "you answered on time", which is presented when the response time is under 10000. What you need to do is to place two feedback items in your trial sequence, one for the slow response and one for the fast response. Clicking on the sequence item, you can indicate a run-if statement, and here you put [response_time_task_resp_3] > 10000.

    Cheers

    Josh

  • Hi Josh,
    thank you for your reply. I have done what you suggest but still the "you were too slow" feedback won't show up. Now it is not only blank, it does not show up at all. How can that be? I send you a screenshot of the trial sequence with the run-if statements.
    Cheers

    V

  • Hi Veronica,

    When looking at the logfile, does the response variable actually show values beyond 10000?

    Cheers

    Josh

Sign In or Register to comment.